我上传了新版的Chrome扩展程序。尝试测试下载新版本时,出现以下错误信息:
发生错误
无法解压缩扩展名
什么都没有登录到浏览器的控制台中,所以我几乎无法使用。
这是错误的图片:
我已经检查了我的Zip文件,以确保该文件未损坏:
$ unzip -t ./build.zip
Archive: build.zip
testing: assets/img/logo.svg OK
testing: assets/img/facebook.svg OK
testing: fonts/mr-eaves-modern.woff2 OK
testing: assets/img/overlay-vignette.png OK
testing: manifest.json OK
testing: background.js OK
testing: main.css OK
testing: main.js OK
testing: options.css OK
testing: options.js OK
testing: assets/icons/cheveron.svg OK
testing: assets/icons/close.svg OK
testing: assets/icons/facebook.svg OK
testing: assets/icons/fullscreen-enter.svg OK
testing: assets/icons/logo.svg OK
testing: assets/icons/reddit.svg OK
testing: assets/icons/search.svg OK
testing: assets/icons/share.svg OK
testing: assets/icons/twitter.svg OK
testing: assets/img/overlay-vignette.png OK
testing: assets/icons/icon16.png OK
testing: assets/icons/icon128.png OK
testing: assets/icons/embed.svg OK
testing: assets/icons/fullscreen-exit.svg OK
testing: assets/icons/icon48.png OK
testing: assets/img/4674895405383680.jpg OK
testing: assets/img/.DS_Store OK
testing: assets/img/4565950808457216.jpg OK
testing: assets/img/4553408967081984.jpg OK
testing: assets/img/5202980357799936.jpg OK
testing: assets/img/4861198805762048.jpg OK
testing: assets/img/5292847716630528.jpg OK
testing: assets/img/5568352688799744.jpg OK
testing: assets/img/5553709064912896.jpg OK
testing: assets/img/6479776759939072.jpg OK
testing: main.html OK
testing: options.html OK
No errors detected in compressed data of build.zip.
还有其他人遇到这个问题并解决了吗?
我认为这与我用来压缩项目的Webpack插件(zip-webpack-plugin)的设置有关。
当我手动右键单击并压缩目录时,我没有任何问题。