fn main() { #[cfg(target_os = "linux")] println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN"); if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" { let mut res = winresource::WindowsResource::new(); res.set_icon("assets/icon.ico"); res.compile().unwrap(); } }