summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastiaanOlij <mux213@gmail.com>2017-07-08 21:32:02 +1000
committerBastiaanOlij <mux213@gmail.com>2017-07-08 21:32:02 +1000
commitae544b227e332902ae584a0357b5ba2d4484672b (patch)
tree6cc6f9709756c61f26e5e4e0c93bbe7197159571
parent84de71872ff2f3d0e7b53229fedb8765a8e820eb (diff)
Only execute chmod exporting iOS when on Mac OS X
-rw-r--r--platform/iphone/export/export.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index ec8470518a..0960ec8791 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -260,10 +260,12 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
f->close();
memdelete(f);
+#ifdef OSX_ENABLED
if (is_execute) {
// we need execute rights on this file
chmod(file.utf8().get_data(), 0755);
}
+#endif
}
ret = unzGoToNextFile(src_pkg_zip);