remove non-existent cargo rerun check (#3412)

This commit is contained in:
chip 2022-02-11 17:19:55 -08:00 committed by GitHub
parent 8f5dba04e2
commit 65287cd614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Remove `cargo:rerun-if-changed` check for non-existent file that caused projects to _always_ rebuild.

View File

@ -152,7 +152,6 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
use cargo_toml::{Dependency, Manifest}; use cargo_toml::{Dependency, Manifest};
use tauri_utils::config::{Config, TauriConfig}; use tauri_utils::config::{Config, TauriConfig};
println!("cargo:rerun-if-changed=src/Cargo.toml");
println!("cargo:rerun-if-changed=tauri.conf.json"); println!("cargo:rerun-if-changed=tauri.conf.json");
#[cfg(feature = "config-json5")] #[cfg(feature = "config-json5")]
println!("cargo:rerun-if-changed=tauri.conf.json5"); println!("cargo:rerun-if-changed=tauri.conf.json5");