File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
crates/tauri-cli/src/interface Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri-cli " : patch:bug
3+ " @tauri-apps/cli " : patch:bug
4+ ---
5+
6+ Fix empty associated-domains entitlements when domains are not configured for deep links.
Original file line number Diff line number Diff line change @@ -1454,14 +1454,16 @@ fn tauri_config_to_bundle_settings(
14541454 . map ( tauri_bundler:: bundle:: Entitlements :: Path )
14551455 } else {
14561456 let mut app_links_entitlements = plist:: Dictionary :: new ( ) ;
1457- app_links_entitlements. insert (
1458- "com.apple.developer.associated-domains" . to_string ( ) ,
1459- domains
1460- . into_iter ( )
1461- . map ( |domain| format ! ( "applinks:{domain}" ) . into ( ) )
1462- . collect :: < Vec < _ > > ( )
1463- . into ( ) ,
1464- ) ;
1457+ if !domains. is_empty ( ) {
1458+ app_links_entitlements. insert (
1459+ "com.apple.developer.associated-domains" . to_string ( ) ,
1460+ domains
1461+ . into_iter ( )
1462+ . map ( |domain| format ! ( "applinks:{domain}" ) . into ( ) )
1463+ . collect :: < Vec < _ > > ( )
1464+ . into ( ) ,
1465+ ) ;
1466+ }
14651467 let entitlements = if let Some ( user_provided_entitlements) = config. macos . entitlements {
14661468 crate :: helpers:: plist:: merge_plist ( vec ! [
14671469 PathBuf :: from( user_provided_entitlements) . into( ) ,
You can’t perform that action at this time.
0 commit comments