fn main() { let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); if target_os == "windows" { let mut res = winresource::WindowsResource::new(); res.set_icon("assets/mouth.ico"); if let Err(e) = res.compile() { eprintln!("cargo:warning=Failed to embed Windows icon: {e}"); } } }