build(windows): change icon path separator for native windows builds

This commit is contained in:
Bryan Hyland 2025-12-09 11:01:57 -08:00 committed by GitHub
parent 3b8ad45950
commit aabc8dcda5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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