Browse Source

Merge pull request #9558 from BastiaanOlij/no_chmod_ios_win

Only execute chmod exporting iOS when on Mac OS X
Rémi Verschelde 8 years ago
parent
commit
f76e1ef2b0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      platform/iphone/export/export.cpp

+ 2 - 0
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);