Эх сурвалжийг харах

fix(codegen): adapt for iOS build

Lucas Nogueira 3 жил өмнө
parent
commit
08584fc657

+ 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();
       let info_plist_path = out_path.display().to_string();
       quote!({
       quote!({
+        #[cfg(desktop)]
         tauri::embed_plist::embed_info_plist!(#info_plist_path);
         tauri::embed_plist::embed_info_plist!(#info_plist_path);
       })
       })
     } else {
     } else {