mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +03:00
fix codegen on non-macOS platforms
This commit is contained in:
parent
82cd400e55
commit
d1b5be7a08
@ -356,7 +356,7 @@ pub fn context_codegen(data: ContextData) -> Result<TokenStream, EmbeddedAssetsE
|
|||||||
.expect("failed to write Info.plist");
|
.expect("failed to write Info.plist");
|
||||||
|
|
||||||
let info_plist_path = out_path.display().to_string();
|
let info_plist_path = out_path.display().to_string();
|
||||||
quote!(tauri::embed_plist::embed_info_plist!(#info_plist_path);)
|
quote!(tauri::embed_plist::embed_info_plist!(#info_plist_path))
|
||||||
} else {
|
} else {
|
||||||
quote!()
|
quote!()
|
||||||
};
|
};
|
||||||
@ -439,7 +439,7 @@ pub fn context_codegen(data: ContextData) -> Result<TokenStream, EmbeddedAssetsE
|
|||||||
let shell_scope_config = quote!();
|
let shell_scope_config = quote!();
|
||||||
|
|
||||||
Ok(quote!({
|
Ok(quote!({
|
||||||
#info_plist
|
#info_plist;
|
||||||
#root::Context::new(
|
#root::Context::new(
|
||||||
#config,
|
#config,
|
||||||
::std::sync::Arc::new(#assets),
|
::std::sync::Arc::new(#assets),
|
||||||
|
Loading…
Reference in New Issue
Block a user