You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var{ signAddon }=require('sign-addon');signAddon({// Required arguments:xpiPath: '/path/to/your/addon.xpi',version: '0.0.1',apiKey: 'Your JWT issuer',apiSecret: 'Your JWT secret',// Optional arguments:// The release channel (listed or unlisted).// Ignored for new add-ons, which are always unlisted.// Default: most recently used channel.channel: undefined,// Save downloaded files to this directory.// Default: current working directory.downloadDir: undefined,// Number of milliseconds to wait before aborting the request.// Default: 15 minutes.timeout: undefined,// Optional proxy to use for all API requests,// such as "http://yourproxy:6000"// Read this for details on how proxy requests work:// https://github.com/request/request#proxiesapiProxy: undefined,// Optional object to pass to request() for additional configuration.// Some properties such as 'url' cannot be defined here.// Available options:// https://github.com/request/request#requestoptions-callbackapiRequestConfig: undefined,// Optional override to the number of seconds until the JWT token for// the API request expires. This must match the expiration time that// the API server accepts.apiJwtExpiresIn: undefined,// Optional override to the URL prefix of the signing API.// The production instance of the API will be used by default.apiUrlPrefix: 'https://addons.mozilla.org/api/v4',}).then(function(result){if(result.success){console.log('The following signed files were downloaded:');console.log(result.downloadedFiles);console.log('Your extension ID is:');console.log(result.id);}else{console.error('Your add-on could not be signed!');console.error('Error code: '+result.errorCode);console.error('Details: '+result.errorDetails);}console.log(result.success ? 'SUCCESS' : 'FAIL');}).catch(function(error){console.error('Signing error:',error);});
Now just drag and drop the signed xpi file in Firefox to install.