I would like to pack my firefox extension as xpi file. I tried by adding it to archive and name it as filename.xpi
But when i try to install it on firefox am getting "package corrupted" message. Is there any way i can create a valid xpi file ?
I have installed cygwin and tried to execute zip command to create xpi file. But got zip is not a command error.
Can somebody guide me to get it done ?
The Firefox browser uses XPI files to provide extensibility in the browser. If you have an XPI file, just drag it to any open Firefox window to install it (select Add when you see the prompt). Mozilla's Add-ons for Firefox page is one place you can go to get official XPI files to use with their browser.
... or from any other browser: Open the link to the extension (ex, https://addons.mozilla.org/en-US/firefox/addon/1password-x-password-manager ) Under the button " Download Firefox and get the extension " click " Download File. "
If you are on windows (to install cygwin it looks like you do), you can use the windows built in tool:
Then just replace the .zip for .xpi in the filename
Looks like your problem is on completing the point 1. correctly. Select only the contents of the extension. Not the folder that contains it.
So basically your zip file should have following structure:
my_extension.zip |- install.rdf |- chrome.manifest |- <chrome>
and NOT this structure:
my_extension.zip |- <my_extension> |- install.rdf |- chrome.manifest |- <chrome>
I experienced the same problems today and found the error to be that the add-on was obviously not signed by Mozilla, causing Firefox to refuse the installation. Up until recently, it was possible to by-pass this security check by setting xpinstall.signatures.required
to false in about:config
. However, as of Firefox 46, signing is mandatory and no by-pass is provided any longer, see https://blog.mozilla.org/addons/2016/01/22/add-on-signing-update/ This means that one has to either downgrade to a previous version or use a non release channel version to test one's addons :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With