Skip to content

Commit

Permalink
Adding a nice Icon for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Power2All committed Oct 21, 2024
1 parent 8f59500 commit 2079b69
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 2079b69

Please sign in to comment.