MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-survey

 

Packaged extensions in Firefox are called "XPI files", which are ZIP files with a different extension.

You don't have to use the XPI extension when uploading to AMO.

During development, your extension will consist of a directory containing a manifest.json file and the other files it needs—scripts, icons, HTML documents, and so on. You need to zip these into a single file for upload to AMO.

If you're using web-ext, use web-ext build to package your extension. Otherwise, follow the instructions below for your chosen operating system.

Tip. The ZIP file must be a ZIP of the extension's files themselves, not of the directory containing them.

Windows

  1. Open the directory containing your extension's files.
  2. Select all of the files and directories.
  3. Open the shortcut menu and click Send to then Compressed (zipped) folder.

Mac OS X

  1. Open the directory containing your extension's files.
  2. Select all of the files and directories.
  3. Open the shortcut menu and click Compress n Items.

Linux / Mac OS X Terminal

  1.  Open Terminal.
  2. Open the directory containing your extension's files,  using the command
    cd path/to/my-extension/
  3. ZIP the content of the directory, using the command
    zip -r -FS ../my-extension.zip *

Document Tags and Contributors

Tags: 
 Contributors to this page: rebloor, andrewtruongmoz, julienw, hellosct1, bunnybooboo, wbamberg, mrj
 Last updated by: rebloor,