ソースを参照

fix(codegen): adapt for iOS build

Lucas Nogueira 3 年 前
コミット
08584fc657
1 ファイル変更1 行追加0 行削除
  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 {