Installation Error: “This add-on cannot be installed because it appears to be corrupted” [closed]

有些话、适合烂在心里 提交于 2019-12-08 04:30:46

问题


I am currently trying to learn how to develop Firefox add-ons, but for my misfortune, I faced a problem before I even start doing so. I downloaded the demo add-on provided by the Firefox developer team which is called "Borderify" and can be seen here: GitHub. After that, I opened WinRar, and converted the folder to a .XPI file. However, when I try to install it manually on my Firefox browser I got this message "This add-on cannot be installed because it appears to be corrupted". I will be grateful if someone points what I've done wrong.


回答1:


Note that just packing the files and renaming the .ZIP file to an .XPI to install it doesn't work. If you want to test and debug the extension, you need to install the extension temporarily. To do so, go to about:debugging and click Load Temporary Add-on, then choose the XPI file to install the add-on. You can also load the add-on from the sources without packing it to an XPI by simply choosing its manifest.json file.

To get the XPI file to install as expected, it needs to be signed. This will be done automatically when you publish it on addons.mozilla.org (AMO).



来源:https://stackoverflow.com/questions/44507730/installation-error-this-add-on-cannot-be-installed-because-it-appears-to-be-co

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!