Add icon to exe in windows

This commit is contained in:
Philip Kristoffersen
2022-04-17 21:32:32 +02:00
parent f4a88a4fe9
commit 49a71c203b
4 changed files with 24 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
use std::io;
#[cfg(windows)] use winres::WindowsResource;
fn main() -> io::Result<()> {
#[cfg(windows)] {
WindowsResource::new()
.set_icon("resources/logo.ico")
.compile()?;
}
Ok(())
}