Skip to content

Commit a68f801

Browse files
committed
v1.0.10
- Added an icon to the application
1 parent c8bd968 commit a68f801

12 files changed

Lines changed: 89 additions & 14 deletions

File tree

Cargo.lock

Lines changed: 24 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ features = [
2626
"Win32_UI_Input_KeyboardAndMouse",
2727
]
2828

29+
[build-dependencies]
30+
winres = "0.1"
31+
2932
[profile.release]
3033
opt-level = "z"
3134
lto = true

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ fn main() {
1515

1616
let version = version.trim().trim_start_matches('v');
1717
println!("cargo:rustc-env=APP_VERSION={version}");
18+
19+
// Embed the application icon into the executable.
20+
let mut res = winres::WindowsResource::new();
21+
res.set_icon("src/icons/icon.ico");
22+
res.compile().expect("Failed to compile Windows resources");
1823
}

src/icons/16.svg

Lines changed: 8 additions & 0 deletions
Loading

src/icons/16x16.png

165 Bytes
Loading

src/icons/256.svg

Lines changed: 25 additions & 0 deletions
Loading

src/icons/256x256.png

1.02 KB
Loading

src/icons/32.svg

Lines changed: 10 additions & 0 deletions
Loading

src/icons/32x32.png

284 Bytes
Loading

src/icons/48.svg

Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)