diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-06-20 11:09:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 11:09:56 +0200 |
commit | 79b77f8357a64946a45186609980651141abc383 (patch) | |
tree | 9577a588de4a26be52a21d88fb4b378175a64db6 | |
parent | 35414f1dec5725499f6f6f7e8715ab16440f1f5f (diff) | |
parent | 4501771fd8743e5019fe313e7e6f890d0d68cbd8 (diff) |
Merge pull request #39700 from nekomatata/osx-export-zip-fix
Set proper file type attribute for OSX zip export
-rw-r--r-- | platform/osx/export/export.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index 8905950020..9af7c02351 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -829,7 +829,10 @@ void EditorExportPlatformOSX::_zip_folder_recursive(zipFile &p_zip, const String zipfi.tmz_date.tm_sec = time.sec; zipfi.tmz_date.tm_year = date.year; zipfi.dosDate = 0; - zipfi.external_fa = (is_executable ? 0755 : 0644) << 16L; + // 0100000: regular file type + // 0000755: permissions rwxr-xr-x + // 0000644: permissions rw-r--r-- + zipfi.external_fa = (is_executable ? 0100755 : 0100644) << 16L; zipfi.internal_fa = 0; zipOpenNewFileInZip4(p_zip, |