diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-17 22:40:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-17 22:40:54 +0200 |
commit | 73b8e5acab7e389d7ce8cfb48d533ba74cd86133 (patch) | |
tree | 46c6a9cbc85eba19818fa5b9f8ef3c2a6615c194 /editor/editor_export.cpp | |
parent | 65ef19abe3cb95df72f5256b17ec6667ed26cf6d (diff) | |
parent | 3528b1e571dee24917b0141232f135e29bf088ba (diff) |
Merge pull request #11362 from marcelofg55/fix_x11_export
Fix x11 exported executables not getting the +x flag
Diffstat (limited to 'editor/editor_export.cpp')
-rw-r--r-- | editor/editor_export.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index d08a595fd2..ad9bc4a662 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1246,9 +1246,13 @@ Error EditorExportPlatformPC::export_project(const Ref<EditorExportPreset> &p_pr } DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); - da->copy(template_path, p_path); + Error err = da->copy(template_path, p_path, get_chmod_flags()); memdelete(da); + if (err != OK) { + return err; + } + String pck_path = p_path.get_basename() + ".pck"; return save_pack(p_preset, pck_path); @@ -1302,5 +1306,17 @@ void EditorExportPlatformPC::get_platform_features(List<String> *r_features) { } } +int EditorExportPlatformPC::get_chmod_flags() const { + + return chmod_flags; +} + +void EditorExportPlatformPC::set_chmod_flags(int p_flags) { + + chmod_flags = p_flags; +} + EditorExportPlatformPC::EditorExportPlatformPC() { + + chmod_flags = -1; } |