beffroi-tools/crates/rundown-converter/build.rs

12 lines
420 B
Rust

fn main() {
println!("cargo:rerun-if-changed=assets/rundown-converter.ico");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows")
&& std::env::var_os("CARGO_FEATURE_DESKTOP").is_some()
{
winresource::WindowsResource::new()
.set_icon("assets/rundown-converter.ico")
.compile()
.expect("Could not embed the Windows application icon");
}
}