Skip to content

Commit

Permalink
Merge pull request #89511 from bruvzg/win_emb_x
Browse files Browse the repository at this point in the history
[Windows] Fix exporting as ZIP when console wrapper and/or embedded PCK is enabled.
  • Loading branch information
akien-mga committed Mar 15, 2024
2 parents 5f3b284 + aac31fe commit c9c17d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/windows/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit c9c17d6

Please sign in to comment.