mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
[Windows] Fix exporting as ZIP when console wrapper and/or embedded PCK is enabled.
This commit is contained in:
parent
0175be8948
commit
aac31feda6
@ -285,15 +285,15 @@ Error EditorExportPlatformWindows::export_project(const Ref<EditorExportPreset>
|
||||
|
||||
if (p_preset->get("codesign/enable")) {
|
||||
_code_sign(p_preset, pck_path);
|
||||
String wrapper_path = p_path.get_basename() + ".console.exe";
|
||||
String wrapper_path = path.get_basename() + ".console.exe";
|
||||
if (FileAccess::exists(wrapper_path)) {
|
||||
_code_sign(p_preset, wrapper_path);
|
||||
}
|
||||
}
|
||||
|
||||
if (embedded) {
|
||||
Ref<DirAccess> tmp_dir = DirAccess::create_for_path(p_path.get_base_dir());
|
||||
err = tmp_dir->rename(pck_path, p_path);
|
||||
Ref<DirAccess> tmp_dir = DirAccess::create_for_path(path.get_base_dir());
|
||||
err = tmp_dir->rename(pck_path, path);
|
||||
if (err != OK) {
|
||||
add_message(EXPORT_MESSAGE_ERROR, TTR("PCK Embedding"), vformat(TTR("Failed to rename temporary file \"%s\"."), pck_path));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user