Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fregante/web-ext-submit

Wrapper around Mozilla’s web-ext to submit extensions to AMO.
https://github.com/fregante/web-ext-submit

webext

Last synced: about 2 months ago
JSON representation

Wrapper around Mozilla’s web-ext to submit extensions to AMO.

Awesome Lists containing this project

README

        

# Deprecated

web-ext now natively supports addon submissions without error starting in 7.3.0. The usage is similar, replace:

```sh
export WEB_EXT_API_KEY=blahla
export WEB_EXT_API_SECRET=blahla
web-ext-submit
```

with

```sh
export WEB_EXT_API_KEY=blahla
export WEB_EXT_API_SECRET=blahla
web-ext sign --use-submission-api --channel listed
```

# web-ext-submit [![npm version](https://img.shields.io/npm/v/web-ext-submit.svg)](https://www.npmjs.com/package/web-ext-submit)

> Wrapper around Mozilla’s web-ext to submit extensions to AMO.

Mozilla’s `web-ext sign` successfully submits an extension for review, but then it throws an error. This wrapper executes the same command, but then it prevents the unrelated ["_it could not be signed_"](https://github.com/mozilla/web-ext/issues/804#issuecomment-302588357) error.

This package will only live until `web-ext` natively supports this. Follow [mozilla/web-ext#804](https://github.com/mozilla/web-ext/issues/804)

Used on https://github.com/sindresorhus/refined-github/

## Install

```sh
npm install web-ext-submit
```

## Requirements

- bash
- sed
- grep
- tee

Tested on Travis and GitHub Actions, they include all of them by default.

## Usage

Since this is just a wrapper around [`web-ext sign`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/web-ext_command_reference#web-ext_sign), it uses the same env variables and supports the same command-line flags as that command.

```sh
WEB_EXT_API_KEY=blahla
WEB_EXT_API_SECRET=blahla
web-ext-submit
```

or

```sh
web-ext-submit --api-key=blahbla --api-secret=blahla
```

## Related

* [`mozilla/web-ext`](https://github.com/mozilla/web-ext): A command line tool to help build, run, and test web extensions.
* [`webext-dynamic-content-scripts`](https://github.com/fregante/webext-dynamic-content-scripts): Automatically inject your `content_scripts` on custom domains.
* [`webext-content-script-ping`](https://github.com/fregante/webext-content-script-ping): One-file interface to detect whether your content scripts have loaded.
* [`webext-options-sync`](https://github.com/fregante/webext-options-sync): Helps you manage and autosave your extension's options.
* [`Awesome WebExtensions`](https://github.com/fregante/Awesome-WebExtensions): A curated list of awesome resources for Web Extensions development.

## License

MPL-2.0 © [Federico Brigante](https://fregante.com)