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);
|
|
|
|
res.set_icon("resources/icon.ico");
|
|
|
|
res.compile().unwrap();
|
|
|
|
}
|
2024-10-24 12:40:35 +00:00
|
|
|
}
|
|
|
|
|