Fix Windows updater failing to copy OpenConsole.exe (#41338)

Release Notes:

- N/A
This commit is contained in:
John Tur authored and GitHub committed 2025-10-28 05:10:57 +00:00
1 parent a44cf3acd2
commit 46139b456c
1 file changed
+6
+6
View File
@@ -128,6 +128,12 @@ pub(crate) const JOBS: &[Job] = &[
open_console_source.display(),
open_console_dest.display()
);
let parent = open_console_dest.parent().context(format!(
"Failed to get parent directory of {}",
open_console_dest.display()
))?;
std::fs::create_dir_all(parent)
.context(format!("Failed to create directory {}", parent.display()))?;
std::fs::copy(&open_console_source, &open_console_dest)
.map(|_| ())
.context(format!(