Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit c7e8dc1

Browse files
committed
Add web-ext build steps
1 parent 74c0dbd commit c7e8dc1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

extension/manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"storage",
3636
"tabs"
3737
],
38+
"icons": {
39+
"128": "logo128.png"
40+
},
3841
"options_page": "out/config.html",
3942
"icons": {
4043
"128": "logo128.png"

extension/pack.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
#!/bin/bash
22

3-
zip -R extension manifest.json out/* logo128.png
3+
set -e
4+
5+
# Firefox extension (done first because web-ext verifies manifest)
6+
if [ -z "$AMO_JWT_ISSUER" ]; then
7+
web-ext build -i "node_modules/**/*" -i "src/**/*" -i "package.json" -i "tsconfig.json" -i "webpack.config.js" -i "yarn.lock"
8+
else
9+
web-ext sign --api-key="$AMO_JWT_ISSUER" --api-secret="$AMO_JWT_SECRET" -i "node_modules/**/*" -i "src/**/*" -i "package.json" -i "tsconfig.json" -i "webpack.config.js" -i "yarn.lock"
10+
fi
11+
12+
# Chrome extension
13+
zip -R chrome-extension.zip manifest.json out/* logo128.png logo.svg

0 commit comments

Comments
 (0)