added cantarella doro icon (creds: https://git.xeondev.com/HuLiNap)

This commit is contained in:
Yuhki 2025-03-25 15:11:24 +01:00
parent c9b45d1dbc
commit 69afb53dec
4 changed files with 30 additions and 0 deletions

19
Cargo.lock generated
View file

@ -1305,6 +1305,15 @@ dependencies = [
"tokio",
]
[[package]]
name = "toml"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
"serde",
]
[[package]]
name = "tower"
version = "0.5.2"
@ -1729,6 +1738,15 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
[[package]]
name = "winres"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c"
dependencies = [
"toml",
]
[[package]]
name = "wit-bindgen-rt"
version = "0.39.0"
@ -1763,6 +1781,7 @@ dependencies = [
"serde_json",
"shellexpand",
"winconsole",
"winres",
]
[[package]]

View file

@ -2,6 +2,10 @@
name = "wuwa-downloader"
version = "0.1.0"
edition = "2024"
build = "build.rs"
[build-dependencies]
winres = "0.1.12"
[dependencies]
colored = "3.0.0"

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 = winres::WindowsResource::new();
res.set_icon("icon.ico");
res.compile().unwrap();
}
}

BIN
icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB