Skip to content

Commit dd78b72

Browse files
authored
Merge pull request #43 from Power2All/v4.0.2
Adding a nice Icon for Windows, forgotten for v4.0.2
2 parents 9c1b33b + 2079b69 commit dd78b72

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

Cargo.lock

+20-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ tokio-shutdown = "^0.1"
5353
toml = "^0.8"
5454
utoipa = { version = "^5", features = ["actix_extras"] }
5555
utoipa-swagger-ui = { version = "^8", features = ["actix-web"] }
56+
57+
[target.'cfg(windows)'.build-dependencies]
58+
winres = "0.1.12"

build.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use std::io;
2+
#[cfg(windows)] use winres::WindowsResource;
3+
4+
fn main() -> io::Result<()>
5+
{
6+
#[cfg(windows)] {
7+
WindowsResource::new()
8+
.set_icon("icon.ico")
9+
.compile()?;
10+
}
11+
Ok(())
12+
}

icon.ico

33.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)