12 lines
281 B
Rust
12 lines
281 B
Rust
extern crate winresource;
|
|
|
|
fn main() {
|
|
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_language(0x0804);
|
|
res.set_icon("icons/icon.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
}
|
|
|