Invalid ZIP Package Issue When Compressing on Mac

When selecting a folder on Mac, right-clicking, and choosing to compress, the resulting ZIP package reports an error when submitted to the Chrome Store.

There was a problem uploading your file. Please try again.
Invalid package. Please make sure it is a valid zip file and the file manifest.json is at the root directory of the zip package.

https://static.1991421.cn/2024/2024-10-10-192723.jpeg https://static.1991421.cn/2024/2024-10-10-192747.jpeg

Following the error message guidance:

  1. The ZIP package is invalid.
  2. The root directory of the ZIP package lacks the manifest file.

Troubleshooting

After manually extracting the problematic package, it was confirmed that the manifest is indeed present, which points to Issue 1. Usually, the package can be decompressed using Mac’s built-in extraction tool. Testing other compression software, such as Keka or CLI ZIP command, did not produce issues, confirming a difference in compression tools on Mac.

Using jszip to read the ZIP package content, it was found that the problematic package contained an extra __MACOSX folder, whose function was researched as follows.

https://static.1991421.cn/2024/2024-10-11-170704.jpeg

Solution

Use the ZIP command or third-party compression apps like Keka.

At the end

Resolving compression issues requires using commands or other compression tools. The package can be decompressed locally but reports errors upon upload to the Chrome Store, which might indicate an issue on Chrome’s side. A support ticket has been submitted, and further communication is ongoing.