Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No icon for addon created with jpm

I can't seem to get my addon icon to show up when I use jpm. The relevant items in package.json are

"icon": "icon.png",
"icon64": "icon64.png",

and when I unpack the extension, I see them in install.rdf as

<em:iconURL>icon.png</em:iconURL>
<em:icon64URL>icon64.png</em:icon64URL>

They are 48x48 and 64x64px png files, respectively.

Both of those files are in the root directory of the extension. If I read the docs correctly, I shouldn't even have to specify those names, as they are the default.

I don't see any extension icon in the Addons-manager. What am I doing wrong?

like image 797
willlma Avatar asked Feb 16 '15 18:02

willlma


2 Answers

This is a known issue with jpm, and I just updated that bug report asking for an update on what we can do about it. It's a mystery to me why it doesn't work as-is.

like image 165
therealjeffg Avatar answered Oct 20 '22 10:10

therealjeffg


it's a bug.

If you're working on jpm 1.0.1, the only way it works is:

"icon": "resource://@youraddonname/icon.png",

rename your icon as "icon". Don't know why it works that way..

like image 38
montjoile Avatar answered Oct 20 '22 09:10

montjoile