mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(build): skip rerun-if-changed when Info.plist do not exist (#10267)
This commit is contained in:
committed by
GitHub
parent
5d29229858
commit
69dcfdfe0f
5
.changes/info-plist-rerun-if-changed.md
Normal file
5
.changes/info-plist-rerun-if-changed.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-build": patch:bug
|
||||
---
|
||||
|
||||
Fix build script rerun-if-changed instruction if Info.plist do not exist next to tauri.conf.json.
|
||||
@@ -115,10 +115,12 @@ impl CodegenContext {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
println!(
|
||||
"cargo:rerun-if-changed={}",
|
||||
config_parent.join("Info.plist").display()
|
||||
);
|
||||
{
|
||||
let info_plist_path = config_parent.join("Info.plist");
|
||||
if info_plist_path.exists() {
|
||||
println!("cargo:rerun-if-changed={}", info_plist_path.display());
|
||||
}
|
||||
}
|
||||
|
||||
let code = context_codegen(ContextData {
|
||||
dev: crate::is_dev(),
|
||||
|
||||
Reference in New Issue
Block a user