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

Set proper file type attribute for OSX zip export #39700

Merged
merged 1 commit into from
Jun 20, 2020

Conversation

pouleyKetchoupp
Copy link
Contributor

The missing file type in file attributes was causing the file to lose executable permissions when unzipped with some software.

Fixes #37725 still occurring in some specific cases.
See #527 (comment)

OSX version: 10.13.6 (High Sierra)
Zip export created on Windows 10
Zip extracted on Mac using default Archive Utility

Source for information about file attributes in zip:
https://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute

The missing file type in file attributes was causing the file to lose
executable permissions when unzipped with some softwares.
@akien-mga akien-mga added this to the 4.0 milestone Jun 20, 2020
@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 20, 2020
@akien-mga akien-mga merged commit 79b77f8 into godotengine:master Jun 20, 2020
@akien-mga
Copy link
Member

Thanks!

@pouleyKetchoupp pouleyKetchoupp deleted the osx-export-zip-fix branch June 20, 2020 10:22
@akien-mga
Copy link
Member

Cherry-picked for 3.2.2.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 21, 2020
@aaronfranke
Copy link
Member

aaronfranke commented Jul 7, 2022

Note for anyone having issues with exporting games on macOS: This fixed exporting a .zip file for macOS, but the executable permission is not set when exporting a .app directly or when exporting a .dmg file.

@akien-mga
Copy link
Member

That was a regression in alpha 11, that's fixed already.

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

Successfully merging this pull request may close these issues.

Mac error -10810 on exported game
3 participants