-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Export submit-addon via package.json
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,6 +194,23 @@ webExtLogger.consoleStream.makeVerbose(); | |
webExt.cmd.run({ sourceDir: './src' }, { shouldExitProgram: false }); | ||
``` | ||
|
||
You can also access the function for signing directly if you need to provide custom options, though the recommended path is via webExt.cmd.sign(): | ||
|
||
```js | ||
import { signAddon } from 'web-ext/util/submit-addon'; | ||
|
||
signAddon({ | ||
apiKey, | ||
apiSecret, | ||
amoBaseUrl: 'https://addons.mozilla.org/api/v5/', | ||
id: '[email protected]', | ||
xpiPath: pathToExtension, | ||
savedUploadUuidPath: '.amo-upload-uuid', | ||
channel: 'unlisted', | ||
userAgentString: 'web-ext/0.2', | ||
}); | ||
``` | ||
|
||
You can also disable the use of standard input: | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters