Is npmjs jpm package 0.0.5 usable yet to create addons for nightly firefox?

34 views
Skip to first unread message

Adrian Aichner

unread,
Apr 4, 2014, 1:40:53 PM4/4/14
to mozilla-la...@googlegroups.com
I always get
19:39:52.085 1396633192085    addons.xpi    WARN    Invalid XPI

19:39:52.185 1396633192185    addons.xpi    WARN    Download of file:///C:/Users/AichnerAd/tmp/mozilla/SnapperFirefox/Snapper/snapper.xpi failed

Adrian Aichner

unread,
Apr 4, 2014, 3:05:43 PM4/4/14
to mozilla-la...@googlegroups.com
One thing I figured out is that the id field in package.json needs to include the "@jetpack" suffix for jpm tooling, but not for cfx.

After that change I can install an addon produced with
jpm -o -v xpi

But then I don't see any options (no Options button in AOM) for my addon.

The Browser console is not happy:

20:58:51.038 "main" undefined bootstrap.js:294
20:58:51.211 "Error while loading localization: Failed to parse locale file:
resource://jid1-he38y6vsw9tphg-at-jetpack/locales.json
Failed to read: 'resource://jid1-he38y6vsw9tphg-at-jetpack/locales.json' (Error: Failed to open input source 'resource://jid1-he38y6vsw9tphg-at-jetpack/locales.json')" runner.js:105

Jeff Griffiths

unread,
Apr 7, 2014, 11:57:13 AM4/7/14
to mozilla-la...@googlegroups.com
I do not think all the right pieces have landed yet. The plan is to do
most of the magic in the add-on manager.

Jeff
> --
> You received this message because you are subscribed to the Google Groups
> "mozilla-labs-jetpack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mozilla-labs-jet...@googlegroups.com.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
> For more options, visit https://groups.google.com/d/optout.

Adrian Aichner

unread,
Apr 7, 2014, 2:57:36 PM4/7/14
to mozilla-la...@googlegroups.com
Thanks for the confirmation, Jeff.

Will the id property incompatibility between cfx and jpm be fixed?
Reply all
Reply to author
Forward
0 new messages