diff --git a/.cargo/config.toml b/.cargo/config.toml index 9380186..4acb8e5 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,5 @@ [build] target = "i686-pc-windows-msvc" + +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] diff --git a/.changes/static-crt.md b/.changes/static-crt.md new file mode 100644 index 0000000..75e822e --- /dev/null +++ b/.changes/static-crt.md @@ -0,0 +1,8 @@ +--- +"nsis_tauri_utils": "minor" +"nsis_download": "minor" +"nsis_process": "minor" +"nsis_semvercompare": "minor" +--- + +Statically link CRT. diff --git a/crates/nsis-tauri-utils/Cargo.toml b/crates/nsis-tauri-utils/Cargo.toml index d5c43cf..768d0ef 100644 --- a/crates/nsis-tauri-utils/Cargo.toml +++ b/crates/nsis-tauri-utils/Cargo.toml @@ -15,6 +15,6 @@ version = "0.1.1" crate-type = [ "cdylib" ] [dependencies] -nsis-download = { path = "../nsis-download" } -nsis-process = { path = "../nsis-process" } -nsis-semvercompare = { path = "../nsis-semvercompare" } +nsis-download = { version = "*", path = "../nsis-download" } +nsis-process = { version = "*", path = "../nsis-process" } +nsis-semvercompare = { version = "*", path = "../nsis-semvercompare" }