firefox-extension-deploy

Deploy Firefox extensions to AMO.

firefox-extension-deploy Build Status Coverage Status

Deploy Firefox extensions to AMO.

Installation

npm install --save-dev firefox-extension-deploy

Usage

Note: firefox-extension-deploy requires Promise support. If your environment does not natively support promises, you’ll need to provide your own polyfill.

var fs = require('fs');
var deploy = require('firefox-extension-deploy');

deploy({
  // obtained by following the instructions here:
  // https://olympia.readthedocs.io/en/latest/topics/api/auth.html
  // or from this page:
  // https://addons.mozilla.org/en-US/developers/addon/api/key/
  issuer: 'myIssuer',
  secret: 'mySecret',

  // the ID of your extension
  id: '[email protected]',
  // the version to publish
  version: '1.0.0',

  // a ReadStream containing a .zip (WebExtensions) or .xpi (Add-on SDK)
  src: fs.createReadStream('path/to/zipped/extension.zip'),
}).then(function() {
  // success!
}, function(err) {
  // failure :(
});

Related Repositories

firefox-extension-deploy

firefox-extension-deploy

Deploy Firefox extensions to AMO. ...