fix(tauri-build): rerun if TAURI_CONFIG env var changes

This commit is contained in:
Lucas Nogueira 2022-04-26 20:02:06 -03:00
parent 146b588b2e
commit 7ae9e25262
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Rerun build script if `TAURI_CONFIG` environment variable change.

View File

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