outfly/build/build.rs
2024-04-20 00:16:50 +02:00

8 lines
223 B
Rust

fn main() {
let target = std::env::var("TARGET").unwrap();
if target.contains("windows") {
println!("cargo:warning=Embedding Windows Icon");
embed_resource::compile("build/windows/icon.rc");
}
}