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.
16
16
17
17
## Testing
18
18
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 7
7
"lint" : " eslint . && web-ext lint -s addon" ,
8
8
"lint-fix" : " eslint . --fix" ,
9
9
"start" : " web-ext run -s addon" ,
10
+ "sign" : " web-ext sign -s addon --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET" ,
10
11
"test" : " echo \" Error: no test specified\" && exit 1"
11
12
},
12
13
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments