I have a Firefox Add-on, I wrote it with the Add-on Builder, it worked in Firefox 11.0. I copied the files into a set of directories on my hard drive and used cfx xpi of the Firefox Add-on SDK 1.6.1 to generate an .xpi and it worked it Firefox 11.0. I edited my main.js in the Add-on Builder and downloaded the .xpi and it works in Firefox 12.0. I modified the main.js on my hard drive, ran cfx xpi, and then when I tried to load the resulting .xpi, it says that it can’t install because it is not compatible with Firefox 12.0.
How can I make this work?
For some reason, Add-on SDK 1.6 uses these compatibility settings:
So the add-ons it produces by default will only be compatible with an alpha version of Firefox 12 but not the final release. You should take the advise from the documentation and edit
python-lib/cuddlefish/app-extension/install.rdf. It would make sense to use14.*asmaxVersionbecause addons.mozilla.org already lists it as a valid version.Update: Current versions of the Add-on SDK have more sensible compatibility ranges. However, if you need to change them – starting with Add-on SDK 1.12 the file can be found under
app-extension/install.rdf(current documentation).