Skip to content

erikdesjardins/firefox-extension-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firefox-extension-deploy

Deploy Firefox extensions to AMO.

You should probably use jpm sign or web-ext sign instead.

Installation

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

Usage

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

deploy({
  // obtained by following the instructions here:
  // https://addons-server.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: 'exampleId@jetpack',
  // 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 :(
});