我正在尝试通过 cfx 工具为 firefox 插件创建 xpi 包。一旦我在文件所在的目录中运行“cfx xpi”命令,就会生成一个 xpi 包。如果我尝试在当前版本的 Firefox (9.0) 上安装此软件包,则会收到一条错误消息,指出此插件与 9.0 版本的 Firefox 不兼容。如何使我的插件与较新版本的 Firefox 兼容?
更多信息:
1) 我对附加开发非常陌生,所以我只是使用 sdk 套件中提供的 reddit-example。
2)我将xpi文件解压到一个文件夹,里面的install.rdf显示最高版本为8.*。我将其更改为 9.* 。如何让 cfx 采用此 install.rdf 而不是默认的内容?
3)我在当前版本的firefox 8.0版本时安装了addon sdk。
问候,
I'm trying to create an xpi package for a firefox addon through cfx tool. Once I ran "cfx xpi" command in the directory where my files are, an xpi package is generated. If I tried to install this package on current version of firefox (9.0), I get an error message saying this addon is not compatible with 9.0 version of firefox. How do I make my addon compatible with newer version of firefox ?
More info:
1) I'm very new to add-on development so I'm just using the reddit-example given along with the sdk kit.
2) I extracted the xpi file to a folder and the install.rdf inside shows a maximum version of 8.* . I changed this to 9.* . How do I make cfx take this install.rdf instead of what ever it is defaulting to ?
3) I installed the addon sdk when 8.0 version of firefox was the current version.
Regards,
发布评论
评论(2)
您使用的是哪个版本的 SDK?如果您使用 SDK 版本 1.3 或在线构建器,您创建的插件应与 Firefox 9 兼容。您可以在此处下载最新版本的 SDK:
https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.3.zip
Which version of the SDK are you using? If you use SDK version 1.3 or the online builder the addons you create should be compatible with Firefox 9. You can download the latest version of the SDK here:
https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.3.zip
将插件上传到 AMO 后,您可以在那里更改支持的版本。
once you upload the addon to AMO you can change the supported versions there.