开发者Chrome扩展程序:套件无效。详情:“无法使用uzip扩展程序” [英] Developer Chrome extension: Package is invalid. Details: "Could not uzip extension'
问题描述
我开发了一个Chrome扩展。我做了一些小的更新,并且突然不能通过chrome网上商店安装扩展。我收到错误
包处于有效状态。详细信息:'无法解压缩扩展名'
看起来zip文件有问题。据我了解,当上传一个zip文件到chrome网上商店时,它会被加密到 crx-file
。它可能是在那里发生的呃逆?
当通过load unpackaged extension或通过拖动crx文件在本地安装扩展时,它可以正常工作。所以清单没有问题。我也检查了无效的文件名。我甚至创建了一个删除所有文件的版本。
我尝试了这个 SE帖子。
我惊讶的是,我在Chrome扩展中找不到谷歌的支持。没有电子邮件或任何我可以联系寻求帮助。
任何帮助都是有用的。
就在昨天。什么显然为我解决了这个问题(我尝试了很多东西,可能是和你一样的所有网页搜索)都是在顶层压缩文件,而不是压缩包含它们的目录。也就是说,zip列表如下所示:
$ unzip -l extension.zip
Archive:extension.zip
长度日期时间名称
-------- ---- ---- ----
659 03-05-13 14:12 manifest.json
...
和不是是这样的:
$ unzip -l extension.zip
存档:extension.zip
长度日期时间名称
- ------ ---- ---- ----
0 03-05-13 15:41延期/
641 03-05-13 15:41延期/清单。 json
...
即使我发誓后一种包装对我来说也很有用。 / p>
I have developed a chrome extension. I made some small updates, and suddely the extension can't be installed through chrome web-store. I get the error
Package is in valid. Details: 'Could not unzip extension'
It appears that there is something wrong with the zip file. As far as i understand when uploading a zip file to chrome web store, it gets encrypted to a crx-file
. Could it be a hiccup happening there?
When installing the the extension locally through 'load unpackaged extension' or with dragging a crx file it works fine. So there is nothing wrong with the manifest. I've also checked for invalid filenames. I even created a version with all files stripped away.
I tried the solutions from this SE post as well.
What surprises me is that i can find no support from google on chrome extension. No email or anything i can contact for help.
Any help is appreciated.
I had this same problem just yesterday. What apparently fixed it for me (I tried a lot of things, probably did all the same web searches as you) was zipping the files at top level and not zipping the directory that contains them. That is, the zip listing looks like this:
$ unzip -l extension.zip
Archive: extension.zip
Length Date Time Name
-------- ---- ---- ----
659 03-05-13 14:12 manifest.json
...
And not like this:
$ unzip -l extension.zip
Archive: extension.zip
Length Date Time Name
-------- ---- ---- ----
0 03-05-13 15:41 extension/
641 03-05-13 15:41 extension/manifest.json
...
Even though I swear the latter packaging worked for me earlier.
这篇关于开发者Chrome扩展程序:套件无效。详情:“无法使用uzip扩展程序”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!