I’m trying to package a Firefox extension that I developed but when I try to install it it tells me: This add-on couldn’t be installed because it seems to be damaged. I have already tried with Firefox Quantum and Nightly version to see if the versions had something to do but nothing, I followed the MDN instructions and neither, I do it to the letter, I select the files but not the folder, I compress it in .ZIP format and then I change the extension to .XPI.
Also I have followed all the instructions of the Next Thread in Stackoverflow, still nothing, I have tried to make the compression with 7-Zip that I have read that it is more recommendable, neither, and well, it is necessary to clarify that with Winrar also I have tried. I don’t think the problem is with the extension because it works perfectly when I try it in debug mode. I leave my directory tree for what it’s worth.
FOLDER ├───content │ ├───info.html │ └───popup.html ├───images │ ├───baricon.png │ ├───icono128.png │ ├───icono16.png │ └───icono48.png ├───js │ └───myjs.js ├───style │ ├───css.css │ └───materialize.css ├───background.js └───manifest.json
Annex that the browser console launches the following error when trying to install the .XPI file:
1563062531180 addons.xpi WARN Invalid XPI: Error: Extension is invalid(resource://gre/modules/addons/XPIInstall.jsm:465:17) JS Stack trace:
Among other things but that’s the main line.