diff --git a/platform/firefox/manifest.json b/platform/firefox/manifest.json index 07fb771..b9b0ddc 100644 --- a/platform/firefox/manifest.json +++ b/platform/firefox/manifest.json @@ -49,5 +49,10 @@ "tabs", "unlimitedStorage", "" - ] + ], + "browser_specific_settings": { + "gecko": { + "id": "{f45cc0a0-da01-dfc1-49f9-f68316927e2d}" + } + } } diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh new file mode 100755 index 0000000..c8b8806 --- /dev/null +++ b/scripts/bump-version.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -euo pipefail + +FILES=( + 'package.json' + 'package-lock.json' + 'platform/chromium/manifest.json' + 'platform/firefox/manifest.json' +) + +function update_version() { + jq ".version = \"$2\"" "$1" | sponge "$1" +} + +if [[ "$#" != 1 ]]; then + echo "usage: $0 version" + exit 1 +fi + +cd "$(dirname "$0")/.." +for file in "${FILES[@]}"; do + update_version "$file" "$1" +done diff --git a/scripts/make-release.sh b/scripts/make-release.sh new file mode 100755 index 0000000..1cdc74e --- /dev/null +++ b/scripts/make-release.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -euo pipefail + +cd "$(dirname "$0")/.." +npm install +npm run build + +npm run chromium +zip -r9 babble-chromium.zip assets dist manifest.json + +npm run firefox +zip -r9 babble-firefox.zip assets dist manifest.json