File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,22 @@ as appropriate.
1616
1717## Testing
1818
19- - ` npm install --global web-ext `
20- - ` cd addon/ `
21- - ` web-ext run `
19+ ### Firefox
20+
21+ - ` npm start `
22+
23+ ### Chrome
24+
25+ Enable developer mode and load the ` addon ` folder as an unpacked extension.
26+
27+ ## Packaging/Signing
28+
29+ ### Firefox
30+
31+ - Find your developer API key: https://addons.mozilla.org/en-US/developers/addon/api/key/
32+ - Set the required environment variables:
33+ ```
34+ export AMO_JWT_ISSUER=<issuer>
35+ export AMO_JWT_SECRET=<secret>
36+ ```
37+ - ` npm run sign `
Original file line number Diff line number Diff line change 77 "lint" : " eslint . && web-ext lint -s addon" ,
88 "lint-fix" : " eslint . --fix" ,
99 "start" : " web-ext run -s addon" ,
10+ "sign" : " web-ext sign -s addon --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET" ,
1011 "test" : " echo \" Error: no test specified\" && exit 1"
1112 },
1213 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments