Developer Chrome extension: Package is invalid. Details: "Could not uzip extension'

前端 未结 3 1075
走了就别回头了
走了就别回头了 2021-01-13 12:34

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

Packa

3条回答
  •  庸人自扰
    2021-01-13 13:03

    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.

提交回复
热议问题