chore: add WindowsResource

This commit is contained in:
b1n
2024-06-26 02:31:44 +08:00
parent b7a4bda3cc
commit 2b3017cab3
6 changed files with 69 additions and 6 deletions

7
build.rs Normal file
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("logo/icon.ico");
res.compile().unwrap();
}
}