12 lines
408 B
Rust
12 lines
408 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=assets/rust-report.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/rust-report.ico")
|
|
.compile()
|
|
.expect("Could not embed the Windows application icon");
|
|
}
|
|
}
|