Add FileAccess::set_unix_permissions for Unix platforms

This commit is contained in:
Juan Linietsky 2019-04-07 15:46:52 -03:00
parent 65f3a953de
commit cd4449e7ab
23 changed files with 140 additions and 12 deletions

View file

@ -568,7 +568,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
f->close();
if (is_execute) {
// Chmod with 0755 if the file is executable
f->_chmod(file, 0755);
FileAccess::set_unix_permissions(file, 0755);
}
memdelete(f);
} else {