Skip to content

Commit d7ce0db

Browse files
authored
Add sign script to to sign for Firefox (#9)
1 parent d96afda commit d7ce0db

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff 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`

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
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",

0 commit comments

Comments
 (0)