I've got a working add-on for Firefox, which was built using the cfx
tool. The tool is being depracated in favor of jpm
from Firefox 38 onwards. I followed the instructions to make the switch, but while running, I get the term undefined
often, even though the add-on works just fine.
JPM undefined Starting jpm run on Magnetz
Creating XPI
JPM undefined XPI created at C:\Temp\example@add-on-1.0.0.xpi (133ms)
Created XPI at C:\Temp\example@add-on-1.0.0.xpi
JPM undefined Creating a new profile
Someone in the forums suggested that the undefined comes from an install.rdf
file, which I don't have. I only have a package.json
, which is what the cfx
-based process requires.
Looking at the contents of typical install.rdf
files, it seems to contain more or less the same data as a package.json
. Is there any way to convert the package.json
to install.rdf
?
I've actually not been able to find a recently updated install.rdf
for add-ons, with most links talking about the older XUL-based add-ons.
I'm also confused about why a Python-based tool (cfx
) favors a JavaScript-based package.json
file, whereas the newer JavaScript-based tool (jpm
) favors an arguably deprecated XML-based install.rdf
.