mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-03 00:21:34 +03:00
fix(tauri-build): rerun if TAURI_CONFIG
env var changes
This commit is contained in:
parent
146b588b2e
commit
7ae9e25262
5
.changes/build-rerun-if-config-var-change.md
Normal file
5
.changes/build-rerun-if-config-var-change.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-build": patch
|
||||
---
|
||||
|
||||
Rerun build script if `TAURI_CONFIG` environment variable change.
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user