File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
4049chrome_build
4150firefox_build
You can’t perform that action at this time.
0 commit comments