8 lines
208 B
Rust
8 lines
208 B
Rust
fn main() {
|
|
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
|
|
let mut res = winres::WindowsResource::new();
|
|
res.set_icon("icon.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
}
|