Skip to content

Commit

Permalink
Merge pull request #43 from Power2All/v4.0.2
Browse files Browse the repository at this point in the history
Adding a nice Icon for Windows, forgotten for v4.0.2
  • Loading branch information
Power2All authored Oct 21, 2024
2 parents 9c1b33b + 2079b69 commit dd78b72
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ tokio-shutdown = "^0.1"
toml = "^0.8"
utoipa = { version = "^5", features = ["actix_extras"] }
utoipa-swagger-ui = { version = "^8", features = ["actix-web"] }

[target.'cfg(windows)'.build-dependencies]
winres = "0.1.12"
12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use std::io;
#[cfg(windows)] use winres::WindowsResource;

fn main() -> io::Result<()>
{
#[cfg(windows)] {
WindowsResource::new()
.set_icon("icon.ico")
.compile()?;
}
Ok(())
}
Binary file added icon.ico
Binary file not shown.

0 comments on commit dd78b72

Please sign in to comment.