Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Windows updater failing to copy OpenConsole.exe (#41338)
John Turc94536a2d635
diff --git a/crates/auto_update_helper/src/updater.rs b/crates/auto_update_helper/src/updater.rsindex 3e6f5e6346e..bbf385ecc87 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!(