图标不显示在Firefox附加管理器 [英] Icon not showing in firefox add-on manager
问题描述
我有一个新的Firefox插件,具有以下目录结构:
/
package.json
data /
图标/
icon48.png
.json文件我有这个:
pre $ icon:data / icons / icon48.png,
(除此之外)。当我按照Firefox附加文档的建议运行 jpm run
时,扩展程序加载,但图标在加载项管理器中不可见。任何想法我失踪?我一直在引用此页面: https://developer.mozilla.org/en -US / Add-ons / SDK / Tools / package_json#icon ,但没有运气。
谢谢!
对于我来说,将图标图像移动到根目录(即与 package.json
)并重新命名为icon.png,解决了这个问题。
I have a new Firefox add-on with the following directory structure:
/
package.json
data/
icons/
icon48.png
In my package.json file I have this:
"icon": "data/icons/icon48.png",
(among other things). When I run jpm run
as recommended by the Firefox add-on docs, the extension loads but the icon is not visible in the add-on manager. Any idea what I'm missing? I have been referencing this page: https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/package_json#icon, but no luck.
Thanks!
Apparently this is a bug. See this issue in the jpm
repository.
For me, moving the icon image to the root directory (i.e. the same path as package.json
) and renaming it "icon.png" fixed the problem.
这篇关于图标不显示在Firefox附加管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!