fn main() { if cfg!(target_os = "windows") { let mut res = winres::WindowsResource::new(); res.set_icon("assets/icon.ico"); res.set_language(0x0009); res.compile().unwrap(); } }