如何使用jpm addon更新firefox cfx插件?

时间:2016-02-02 04:22:42

标签: firefox firefox-addon-sdk

我使用cfx创建了Firefox插件,现在firefox已将cfx更改为jpm。 现在我用jpm更新了我的插件。但我无法将旧版本更新为新版本。有没有办法做到这一点??

//older package.json
 `{
  "name": "mysearch",
  "title": "My Search",
  "id": "jid1-muBPHCjQmjOfVw",
  "description": " This addon provides an advanced keyword-based search functionality through this extension",
  "author": "sameera",
  "license": "MPL 2.0",
  "version": "1.0"
}
//new package.json
{
  "title": "My Search",
  "name": "mysearch",
  "version": "1.1.0",
  "id": "jid1-muBPHCjQmjOfVw@jetpack",
  "description": "This addon provides an advanced keyword-based search functionality through this extension",
  "main": "index.js",
  "author": "sameera",
  "engines": {
    "firefox": ">=38.0a1"
  },
  "license": "MPL 2.0",
  "keywords": [
    "jetpack"
  ]
}`

1 个答案:

答案 0 :(得分:1)

只需将@jetpack附加到您在cfx构建的插件的package.json中的ID。

https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx_to_jpm