解压缩和压缩工作的.xpi使其停止工作 [英] Unzipping and zipping a working .xpi makes it stop working

查看:124
本文介绍了解压缩和压缩工作的.xpi使其停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Mozilla下载了基本的Hello World xpi,并将其安装在Firefox中没有任何问题。然后,我解开了插件,解压缩了xpi,然后在不更改其内部任何内容的情况下,再次使用7zip将其压缩了。我尝试安装它,然后Firefox给了我一个此插件,因为它似乎已损坏,无法安装错误。

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.

推荐答案

解压缩.xpi会产生一个与.xpi同名的文件夹及其内容。要创建一个有效的.xpi,请压缩该文件夹的内容,而不是文件夹本身。

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.

贷方到 nmaier

这篇关于解压缩和压缩工作的.xpi使其停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆