Files
2026-09-30 04:28:38 -03:00

12 lines
535 B
Rust

// Windows builds get the Eye icon and a manifest (runs as the normal user, DPI aware) embedded.
fn main() {
println!("cargo:rerun-if-changed=assets/app.rc");
println!("cargo:rerun-if-changed=assets/app.ico");
println!("cargo:rerun-if-changed=assets/app.manifest");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
embed_resource::compile("assets/app.rc", embed_resource::NONE)
.manifest_optional()
.expect("embedding the Windows icon and manifest failed");
}
}