~vpzom/hitide

430eb0e5306e1d8d4babc62526a8d81b8f10b8ea — Colin Reeder a month ago 802f859
Attempt to fix windows build
1 files changed, 7 insertions(+), 3 deletions(-)

M icons/build.rs
M icons/build.rs => icons/build.rs +7 -3
@@ 3,8 3,12 @@ use std::io::Write;

fn main() {
    println!("cargo:rerun-if-changed=res");
    let mut file =
        std::fs::File::create(format!("{}/icons.rs", std::env::var("OUT_DIR").unwrap())).unwrap();
    let mut file = std::fs::File::create(format!(
        "{}{}icons.rs",
        std::env::var("OUT_DIR").unwrap(),
        std::path::MAIN_SEPARATOR
    ))
    .unwrap();
    let mut mapping = Vec::new();

    writeln!(file, "use super::Icon;").unwrap();


@@ 30,7 34,7 @@ fn main() {

        writeln!(
            file,
            "pub const {}: Icon=Icon{{path:\"{}\",content:include_str!(\"{}\")}};",
            "pub const {}: Icon=Icon{{path:\"{}\",content:include_str!(r#\"{}\"#)}};",
            name,
            key,
            path.canonicalize().unwrap().to_str().unwrap()