Browse Source

fix(codegen): adapt for iOS build

Lucas Nogueira 3 năm trước cách đây
mục cha
commit
08584fc657
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      core/tauri-codegen/src/context.rs

+ 1 - 0
core/tauri-codegen/src/context.rs

@@ -314,6 +314,7 @@ pub fn context_codegen(data: ContextData) -> Result<TokenStream, EmbeddedAssetsE
 
       let info_plist_path = out_path.display().to_string();
       quote!({
+        #[cfg(desktop)]
         tauri::embed_plist::embed_info_plist!(#info_plist_path);
       })
     } else {