【问题标题】:Cannot validate firefox addon via web-ext无法通过 web-ext 验证 firefox 插件
【发布时间】:2018-06-01 12:08:27
【问题描述】:

我正在尝试使用 web-ext 签署我的 firefox 扩展的第二个版本,但我不断收到此错误

Your add-on failed validation and could not be signed
FAIL

WebExtError: The extension could not be signed
    at _callee$ (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\src\cmd\sign.js:134:15)
    at tryCatch (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:114:21)
    at step (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:1)
    at C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

我不明白为什么会发生这种情况,因为我第一次尝试签名时它起作用了。 PS:我已经在 manifest.json 脚本中编写了一个新版本 有人可以帮帮我吗?

【问题讨论】:

  • 我现在也出现这种情况,想知道原因吗?好像服务器出错了

标签: firefox-addon firefox-addon-webextensions


【解决方案1】:

在“您的添加失败...”行上方,您是否得到这样的行?: 验证结果:https://addons.mozilla.org/en-US/developers/upload/....

我收到了同样的错误消息,点击该链接向我展示了它失败原因的详细分析。我的错误是我有一个名为 Translator.js 的文件,但在清单中它被列为 translate.js,请注意这种情况。重命名后,签名成功。

【讨论】:

    【解决方案2】:

    如果你在 Windows 上试试:

    1. 以管理员身份运行 cmd。
    2. 不使用批处理文件运行签名命令

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-06
      • 2018-07-09
      • 1970-01-01
      • 2012-01-20
      • 1970-01-01
      • 2010-10-07
      相关资源
      最近更新 更多