From c94536a2d6352867edfa471c1e7c3840ec4f7be7 Mon Sep 17 00:00:00 2001 From: John Tur Date: Tue, 28 Oct 2025 01:10:57 -0400 Subject: [PATCH] Fix Windows updater failing to copy OpenConsole.exe (#41338) Release Notes: - N/A --- crates/auto_update_helper/src/updater.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/auto_update_helper/src/updater.rs b/crates/auto_update_helper/src/updater.rs index 3e6f5e6346ef0996af6741adec1503d7d5096a22..bbf385ecc870cb7630bb109cda4db19cd33c07ec 100644 --- a/crates/auto_update_helper/src/updater.rs +++ b/crates/auto_update_helper/src/updater.rs @@ -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!(