Fix x11 exported executables not getting the +x flag
This commit is contained in:
parent
574a5714dc
commit
3528b1e571
8 changed files with 43 additions and 4 deletions
|
|
@ -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) {
|
|||
}
|
||||
}
|
||||
|
||||
EditorExportPlatformPC::EditorExportPlatformPC() {
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue