2024-10-24 12:35:15 +00:00
|
|
|
extern crate winresource;
|
|
|
|
|
2024-10-24 10:12:14 +00:00
|
|
|
fn main() {
|
2024-10-24 12:35:15 +00:00
|
|
|
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
|
|
|
|
let mut res = winresource::WindowsResource::new();
|
|
|
|
res.set_language(0x0804);
|
2024-11-20 01:16:46 +00:00
|
|
|
res.set_icon("icons/icon.ico");
|
2024-10-24 12:35:15 +00:00
|
|
|
res.compile().unwrap();
|
|
|
|
}
|
2024-10-24 12:40:35 +00:00
|
|
|
}
|
|
|
|
|