mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
committed by
GitHub
parent
dcd506676c
commit
fa23310f23
6
.changes/macos-deployment-target-env-var.md
Normal file
6
.changes/macos-deployment-target-env-var.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Set the `MACOSX_DEPLOYMENT_TARGET` environment variable with the configuration `minimum_system_version` value.
|
||||
@@ -141,6 +141,11 @@ impl Interface for Rust {
|
||||
}
|
||||
manifest
|
||||
};
|
||||
|
||||
if let Some(minimum_system_version) = &config.tauri.bundle.macos.minimum_system_version {
|
||||
std::env::set_var("MACOSX_DEPLOYMENT_TARGET", minimum_system_version);
|
||||
}
|
||||
|
||||
Ok(Self {
|
||||
app_settings: RustAppSettings::new(config, manifest)?,
|
||||
config_features: config.build.features.clone().unwrap_or_default(),
|
||||
|
||||
Reference in New Issue
Block a user