mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
build: automate beta builds for AMO
This commit is contained in:
parent
6d2cfee6ac
commit
214974dfc9
2 changed files with 26 additions and 1 deletions
25
scripts/sign
Executable file
25
scripts/sign
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
bump_version() {
|
||||
sed "s/VERSIONHERE/8374.$(git rev-list --count HEAD)pre/" -i build/manifest.json
|
||||
}
|
||||
|
||||
sign_and_submit() {
|
||||
(source AMOKEYS && web-ext sign -s build --api-key $AMOKEY --api-secret $AMOSECRET)
|
||||
}
|
||||
|
||||
publish_beta() {
|
||||
npm run build
|
||||
bump_version
|
||||
sign_and_submit
|
||||
}
|
||||
|
||||
publish_sideload() {
|
||||
npm run build
|
||||
bump_version
|
||||
sed 's/"name": "Tridactyl"/"name": "Tridactyl Sideload"/' -i build/manifest.json
|
||||
sed 's/tridactyl.vim@cmcaine/tridactyl.vim.betas@cmcaine/' -i build/manifest.json
|
||||
sign_and_submit
|
||||
}
|
||||
|
||||
publish_beta
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
"manifest_version": 2,
|
||||
"name": "Tridactyl",
|
||||
"version": "1.0",
|
||||
"version": "VERSIONHERE",
|
||||
|
||||
"background" : {
|
||||
"scripts": ["background.js"]
|
||||
|
|
Loading…
Add table
Reference in a new issue