mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
feat(cli): synchronize productName changes with iOS Xcode project (#13658)
* feat(cli): synchronize productName changes with iOS Xcode project * fmt
This commit is contained in:
committed by
GitHub
parent
d1ce9af628
commit
4a880ca697
6
.changes/sync-product-name.md
Normal file
6
.changes/sync-product-name.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": "minor:feat"
|
||||
"@tauri-apps/cli": "minor:feat"
|
||||
---
|
||||
|
||||
Synchronize Tauri config productName changes with the iOS Xcode project.
|
||||
@@ -524,6 +524,13 @@ pub fn synchronize_project_config(
|
||||
.unwrap()
|
||||
.identifier
|
||||
.clone();
|
||||
let product_name = tauri_config
|
||||
.lock()
|
||||
.unwrap()
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.product_name
|
||||
.clone();
|
||||
|
||||
let manual_signing = project_config.code_sign_identity.is_some()
|
||||
|| project_config.provisioning_profile_uuid.is_some();
|
||||
@@ -550,6 +557,14 @@ pub fn synchronize_project_config(
|
||||
&identifier,
|
||||
);
|
||||
|
||||
if let Some(product_name) = &product_name {
|
||||
pbxproj.set_build_settings(
|
||||
&build_configuration_ref.id,
|
||||
"PRODUCT_NAME",
|
||||
&format!("\"{product_name}\""),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(identity) = &project_config.code_sign_identity {
|
||||
let identity = format!("\"{identity}\"");
|
||||
pbxproj.set_build_settings(&build_configuration_ref.id, "CODE_SIGN_IDENTITY", &identity);
|
||||
|
||||
Reference in New Issue
Block a user