From ae544b227e332902ae584a0357b5ba2d4484672b Mon Sep 17 00:00:00 2001 From: BastiaanOlij Date: Sat, 8 Jul 2017 21:32:02 +1000 Subject: [PATCH] Only execute chmod exporting iOS when on Mac OS X --- platform/iphone/export/export.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 &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);