Set windows app icon (just for exe)

This commit is contained in:
Lncvrt committed 2026-03-23 21:31:36 -07:00
1 parent 8b27bcd1cf
commit 5ba37fe26d
4 files changed
+13

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
fn main() {
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();
}
}