Skip to content

Commit

Permalink
link vcredist statically
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Jul 12, 2024
1 parent f29c5b5 commit f42738c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ indicatif = "0.17.8"
tokio = {version="1.38.0", features = ["rt-multi-thread", "macros"]}
simple-log = "1.5.1"


[target.'cfg(unix)'.dependencies]
openssl = { version = "0.10.64", default-features = false, features = ["vendored"] }

Expand All @@ -34,6 +33,7 @@ self-replace = "1.3.7"

[build-dependencies]
winresource = "0.1.17"
static_vcruntime = "2.0"

[package.metadata.winresource]
OriginalFilename = "alterware-launcher.exe"
Expand Down
1 change: 1 addition & 0 deletions res/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
static_vcruntime::metabuild();
let mut res = winresource::WindowsResource::new();
res.set_icon("res/icon.ico").set_language(0x0409);
res.compile().unwrap();
Expand Down

0 comments on commit f42738c

Please sign in to comment.