Files
faumaray 3ea497d38a
CI / check (push) Successful in 1m30s
CI / windows (push) Failing after 4m27s
Ship a self-contained Windows GUI with game shortcuts and application icons
2026-11-27 23:34:01 +03:00

12 lines
470 B
Rust

fn main() {
println!("cargo:rerun-if-changed=assets/windows.rc");
println!("cargo:rerun-if-changed=assets/icon.ico");
// Check the target rather than the host so cross builds also receive the icon.
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
embed_resource::compile("assets/windows.rc", embed_resource::NONE)
.manifest_required()
.expect("failed to embed the Windows application icon");
}
}