oh8
V2EX  ›  问与答

自己开发的 firefox 的扩展能否不上传给 mozilla 签名,而直接在自己的浏览器上使用?

  •  
  •   oh8 · Oct 17, 2016 · 3191 views
    This topic created in 3677 days ago, the information mentioned may be changed or developed.
    调试时 load 上去的重启浏览器后就失效了。

    他们的文档说不管是在他们商店发布还是自己发布,都得传给他们签名。那我自己用的也非要这样么?这不科学啊。
    11 replies  •  2016-10-17 14:58:29 +08:00
    cye3s
    cye3s
    Oct 17, 2016 via Android
    1
    用 45esr 版关强制签名或等 48 无强制签名版
    honeycomb
    honeycomb
    Oct 17, 2016 via Android
    2
    Mozilla 说这是科学的,所以这是科学的。

    实际上是 Mozilla 在模仿 Google 对 chrome 的政策。
    xxxyyy
    xxxyyy
    Oct 17, 2016 via Android❤️1
    3
    看是那种类型的扩展,如果是使用 jpm 来开发的,可以去 addon.mozilla.org 里获取一个 API key 跟 secret ,然后在本地使用 jpm 来进行签名。
    sensui7
    sensui7
    Oct 17, 2016
    4
    @honeycomb 不懂 firefox, 但是 chrome 加载自己开发解压的扩展可以用啊, 不上传商店呗.
    we000
    we000
    Oct 17, 2016
    5
    用 beta branch 的 Firefox 可以么
    JackBlack2006
    JackBlack2006
    Oct 17, 2016
    6
    好像 nightly 还能不需要签名?
    oh8
    oh8
    OP
    Oct 17, 2016
    7
    @cye3s
    @we000
    @JackBlack2006
    原来有一些版本是可以的。
    "Unsigned add-ons can still be installed in Developer Edition, Nightly, and ESR versions of Firefox, after toggling the xpinstall.signatures.required preference in about:config."
    oh8
    oh8
    OP
    Oct 17, 2016
    8
    不过现在还是没搞懂如何打包 xpi 文件。直接把 manifest.json 那些文件压成 zip 然后改后缀,在原版 firefox 里面添加提示 “ has not been verified ”,在开发者版里添加就提示 “ appears to be corrupt ”,是打包方式不对么。。?
    JackBlack2006
    JackBlack2006
    Oct 17, 2016
    9
    @oh8 我记得是用终端压缩的
    imn1
    imn1
    Oct 17, 2016
    10
    @oh8
    xpinstall.signatures.required=false 这个应该很快就不能用了
    以后可能只有开发版能不签名
    cye3s
    cye3s
    Oct 17, 2016
    11
    48 后还可以用无品牌构建版,中文语言可以下个对应版本的 xpi 装上,改个参数就行了
    https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 21:08 · PVG 05:08 · LAX 13:08 · JFK 16:08
    ♥ Do have faith in what you're doing.