feat: add icon

This commit is contained in:
b1n
2024-06-26 03:43:17 +08:00
parent 2b3017cab3
commit 1242262d22
4 changed files with 189 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
#[cfg(target_os = "windows")]
{
let mut res = winresource::WindowsResource::new();
res.set_icon("logo/icon.ico");
res.compile().unwrap();