From aabc8dcda530a6ac70617dd578cea55910af53c8 Mon Sep 17 00:00:00 2001 From: Bryan Hyland Date: Tue, 9 Dec 2025 11:01:57 -0800 Subject: [PATCH] build(windows): change icon path separator for native windows builds --- build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.rs b/build.rs index a8f1a4cc..c69feaf5 100644 --- a/build.rs +++ b/build.rs @@ -41,6 +41,9 @@ fn generate_bundled_icons() { ) .into_iter() .fold(String::new(), |mut output, (name, path)| { + // This changes the escape character to the one used by Windows. + #[cfg(windows)] + let path = path.replace("\\", "/"); output.push_str(&format!(" \"{name}\" => include_bytes!(\"{path}\"),\n")); output });