tridactyl/scripts/sign
Colin Caine db5dae64cd Update beta signing script
Script now leaves an xpi in web-ext-artifacts that some other script needs to work with.

We'll need to cp the xpi into public_html and update update.json.
2018-03-23 00:25:00 +00:00

27 lines
542 B
Bash
Executable file

#!/usr/bin/env bash
set -e
sign_and_submit() {
# Don't trust the return value of web-ext sign.
(source AMOKEYS && (web-ext sign -s build --api-key $AMOKEY --api-secret $AMOSECRET || true))
}
publish_beta() {
npm run clean
npm run build
scripts/version.js beta
sed 's/tridactyl.vim@cmcaine/tridactyl.vim.betas@cmcaine/' -i build/manifest.json
sign_and_submit
}
publish_stable() {
npm run clean
npm run build
sign_and_submit
}
case $1 in
stable) publish_stable;;
*|beta) publish_beta;;
esac