1 2 3 4 5 6
fn main() { let target = std::env::var("TARGET").unwrap(); if target.contains("windows") { embed_resource::compile("icon.rc"); } }