Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to Mac produces 0-length files #40192

Closed
tliron opened this issue Jul 7, 2020 · 4 comments
Closed

Export to Mac produces 0-length files #40192

tliron opened this issue Jul 7, 2020 · 4 comments
Labels

Comments

@tliron
Copy link

tliron commented Jul 7, 2020

Godot version:
3.2.2.stable.official

OS/device including version:
Fedora 32 64bit

Issue description:
Exporting using the standard templates. Linux X11 and Windows exports work. But when I export Mac I get a zip file in which the zipped files are zero length, so it cannot be run.

Steps to reproduce:
Open the project, export to Mac, check out the exported zip and see that though the directory structure is correct the files are empty.

Minimal reproduction project:
Attached is the "Dodge the Creeps" tutorial as I created it.

dodge.zip

@akien-mga
Copy link
Member

Duplicate of #39931, this is fixed in the 3.2 branch and I will soon release 3.2.3 including it and other fixes.

In the meantime, since the problem is with the Zip flags and not the files themselves, you should be able to work it around by unzipping with a different tool than macOS' default archiver, make the Godot binary executable (which is missing) and re-zip.

@tliron
Copy link
Author

tliron commented Jul 8, 2020

I don't think this is a duplicate of that issue. I am not unzipping on Mac, but rather on Linux. The files are there in the zip but they are zero length.

@akien-mga
Copy link
Member

See #39931 (comment)

It's a symptom of the same bug, which was fixed in #39977.

@tliron
Copy link
Author

tliron commented Jul 8, 2020

Awesome, thanks! And I found a workaround and more details. Will post it here in case someone searches and find this:

The issue in Fedora Linux, specifically, was the GNOME Archive Manager app. It seems to have the same or similar problem as the Mac default archiver, whereby zip entries with bad attributes don't get read correctly. In the case of GNOME Archive Manager it does show those entries, but as length 0. And if you try to extract them, they will be skipped.

However, the "unzip" command line tool is more forgiving. The workaround then is simple in Linux: unzip from the command line, and then you can zip again (you can zip again using GNOME Archive Manager if you want, the files are good now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants