build(windows): change icon path separator for native windows builds
This commit is contained in:
parent
3b8ad45950
commit
aabc8dcda5
1 changed files with 3 additions and 0 deletions
3
build.rs
3
build.rs
|
|
@ -41,6 +41,9 @@ fn generate_bundled_icons() {
|
||||||
)
|
)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.fold(String::new(), |mut output, (name, path)| {
|
.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.push_str(&format!(" \"{name}\" => include_bytes!(\"{path}\"),\n"));
|
||||||
output
|
output
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue