Skip to content

Commit

Permalink
for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamontov committed Dec 8, 2024
1 parent e5e456a commit bf65320
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ exclude = [".*"]
passgen-lib = "1.0.3"
clap = { version = "4.5.23", features = ["cargo"] }
clap_derive = "4.5.18"

# Reduce the size of the executable file:
[profile.release]
lto = true
codegen-units = 1
opt-level = "z"
panic = 'abort'
strip = true

[build-dependencies]
windows_exe_info = "0.4.2"
Binary file added McP_256x256.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extern crate windows_exe_info;
fn main() {
windows_exe_info::icon::icon_ico(std::path::Path::new("McP_256x256.ico"));
windows_exe_info::versioninfo::link_cargo_env();
}

0 comments on commit bf65320

Please sign in to comment.