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 });