图标不显示在Firefox附加管理器 [英] Icon not showing in firefox add-on manager

查看:132
本文介绍了图标不显示在Firefox附加管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的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 ,但没有运气。

谢谢!

jpm 问题 c> repository。



对于我来说,将图标图像移动到根目录(即与 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆