mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-04 09:08:38 +03:00
parent
038c2cc8b1
commit
2e61abaa9a
6
.changes/static-vcruntime-envvar.md
Normal file
6
.changes/static-vcruntime-envvar.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Skip the static link of the `vcruntime140.dll` if the `STATIC_VCRUNTIME` environment variable is set to `false`.
|
@ -155,7 +155,10 @@ impl Interface for Rust {
|
||||
.features
|
||||
.get_or_insert(Vec::new())
|
||||
.push("custom-protocol".into());
|
||||
std::env::set_var("STATIC_VCRUNTIME", "true");
|
||||
|
||||
if !std::env::var("STATIC_VCRUNTIME").map_or(false, |v| v == "false") {
|
||||
std::env::set_var("STATIC_VCRUNTIME", "true");
|
||||
}
|
||||
|
||||
if options.target == Some("universal-apple-darwin".into()) {
|
||||
std::fs::create_dir_all(&out_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user