我正在尝试安装扩展程序而未对其进行签名。我尝试了以下步骤:
xpinstall.signatures.required
设置为false但是当我尝试在插件管理器中安装扩展程序时,会得到
The add-on downloaded from this site could not be installed because it appears to be corrupt.
在浏览器控制台中,我得到
1585752245599 addons.xpi WARN Invalid XPI: Error: Cannot find id for addon C:\the.zip(resource://gre/modules/addons/XPIInstall.jsm:1532:19) JS Stack trace: [email protected]:1532:19
async*[email protected]:2040:18
[email protected]:2989:20
[email protected]:4172:25
XPIProvider[meth]@XPIProvider.jsm:3138:28
[email protected]:238:31
getInstallForFile/<@AddonManager.jsm:1870:29
[email protected]:1883:7
[email protected]:4003:33
installAddonsFromFilePicker/</<@aboutaddonsCommon.js:238:42
可以在about:debugging
中暂时成功安装附件
选项xpinstall.signatures.required
在Firefox Developer Edition 76上对我有用。您看到的错误消息不同于签名检查失败的错误消息。您是否用以下目录重新打包文件?:
+ zipfile.xpi
+ [folder]
+ manifest.json
+ background.js
+ ...
然后您需要重新打包不带文件夹的文件,并将文件直接放在存档文件下,例如:
+ zipfile.xpi
+ manifest.json
+ background.js
+ ...