Skip to content

Commit fa23310

Browse files
authored
fix(cli): set MACOSX_DEPLOYMENT_TARGET env var, closes #4704 (#4842)
1 parent dcd5066 commit fa23310

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Set the `MACOSX_DEPLOYMENT_TARGET` environment variable with the configuration `minimum_system_version` value.

tooling/cli/src/interface/rust.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ impl Interface for Rust {
141141
}
142142
manifest
143143
};
144+
145+
if let Some(minimum_system_version) = &config.tauri.bundle.macos.minimum_system_version {
146+
std::env::set_var("MACOSX_DEPLOYMENT_TARGET", minimum_system_version);
147+
}
148+
144149
Ok(Self {
145150
app_settings: RustAppSettings::new(config, manifest)?,
146151
config_features: config.build.features.clone().unwrap_or_default(),

0 commit comments

Comments
 (0)