Skip to content

Commit 513522b

Browse files
committed
add missing manifest attributes on the fly
1 parent 5ca65f8 commit 513522b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

script/stores_build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ firefox_build() {
2727
export INLINE_RUNTIME_CHUNK=false
2828
export GENERATE_SOURCEMAP=false
2929

30+
echo 'add missing geeko id'
31+
yarn global add json
32+
json -I -f public/manifest.json -e 'this.applications={}'
33+
json -I -f public/manifest.json -e 'this.applications.gecko={}'
34+
json -I -f public/manifest.json -e 'this.applications.gecko.id="{f8793186-e9da-4332-aa1e-dc3d9f7bb04c}"'
35+
3036
yarn build
3137

3238
mkdir -p dist
@@ -35,7 +41,10 @@ firefox_build() {
3541
cd dist/ && zip -r ../firefox_extension.zip * -x "*.DS_Store" && cd ..
3642

3743
echo 'zipping the source code for Firefox'
38-
zip -r source_code.zip 'public/' 'script/' 'src' 'LICENSE' 'package.json' 'yarn.lock' 'README.md' 'craco.config.js' '.env' -x "*.DS_Store"
44+
zip -r source_code.zip 'public/' 'script/' 'src' 'LICENSE' 'package.json' 'yarn.lock' 'README.md' 'craco.config.js' '.env' 'tsconfig.json' -x "*.DS_Store"
45+
46+
echo "revert manifest changes"
47+
git restore public/manifest.json
3948
}
4049
chrome_build
4150
firefox_build

0 commit comments

Comments
 (0)