Add icon to Windows build when cross-compiling

This commit is contained in:
Alex Page 2022-01-27 21:30:11 -05:00
parent 24e020be36
commit b56c15fbe0

View file

@ -1,12 +1,12 @@
#[cfg(windows)]
#[cfg(target_os = "windows")]
extern crate winres;
#[cfg(windows)]
#[cfg(target_os = "windows")]
fn main() {
let mut res = winres::WindowsResource::new();
res.set_icon("icon.ico");
res.compile().unwrap();
}
#[cfg(unix)]
#[cfg(not(target_os = "windows"))]
fn main() {}