Unzipping and zipping a working .xpi makes it stop

2019-06-05 02:01发布

I downloaded the basic Hello World xpi from Mozilla, and it installed in my Firefox without any problems. Then I unistalled the addon, unzipped the xpi, then, without changing anything inside it, zipped it again using 7zip. I tried to install it, and Firefox gave me a "This addon could not be installed because it appears to be corrupt" error.

1条回答
叼着烟拽天下
2楼-- · 2019-06-05 02:48

Unzipping the .xpi produces a folder with the same name as the .xpi, with its contents. To create a working .xpi, zip the contents of that folder, not the folder itself.

Credit goes to nmaier.

查看更多
登录 后发表回答