Merge pull request #117 from mxve/vcredist

link vcredist statically
This commit is contained in:
2024-07-12 19:26:49 +02:00
committed by GitHub
3 changed files with 9 additions and 1 deletions

7
Cargo.lock generated
View File

@@ -34,6 +34,7 @@ dependencies = [
"serde_json",
"sha1_smol",
"simple-log",
"static_vcruntime",
"steamlocate",
"tokio",
"winresource",
@@ -1501,6 +1502,12 @@ version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
[[package]]
name = "static_vcruntime"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "954e3e877803def9dc46075bf4060147c55cd70db97873077232eae0269dc89b"
[[package]]
name = "steamlocate"
version = "2.0.0-beta.2"

View File

@@ -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"] }
@@ -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"

View File

@@ -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();