buildactions icon indicating copy to clipboard operation
buildactions copied to clipboard

Problem with ZipFileOperation for large folders (+ possible solution)

Open 3ternal opened this issue 2 years ago • 1 comments

I've previously used ZipFileOperation to create a zip for each of my builds, but I recently encountered a problem with this, possibly due to the project's current file size. Here's the error:

Ionic.Zip.ZipException: Compressed or Uncompressed size, or offset exceeds the maximum value. Consider setting the UseZip64WhenSaving property on the ZipFile instance.

The source folders are around 5.5 GB, and if I create a zip manually, it comes out to around 900 MB.

It seems like this could be solved by adding a line with the UseZip64WhenSaving property as the message suggests, but I can't easily test this myself because the script is part of the Unity package, so it auto-reverts any edits that I make.

3ternal avatar Aug 24 '22 20:08 3ternal

Hi @3ternal, thanks for reporting this. I'll take a look into it, but it sounds like your suggestion might be the right way to go.

robinnorth avatar Aug 26 '22 09:08 robinnorth