diff --git a/.changes/build-rerun-if-resource-sidecar-change.md b/.changes/build-rerun-if-resource-sidecar-change.md new file mode 100644 index 000000000..ef8a0c95e --- /dev/null +++ b/.changes/build-rerun-if-resource-sidecar-change.md @@ -0,0 +1,5 @@ +--- +"tauri-build": patch +--- + +Rerun if sidecar or resource change. diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 95a79110a..4d2f6de79 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -34,6 +34,7 @@ fn copy_file(from: impl AsRef, to: impl AsRef) -> Result<()> { fn copy_binaries<'a>(binaries: ResourcePaths<'a>, target_triple: &str, path: &Path) -> Result<()> { for src in binaries { let src = src?; + println!("cargo:rerun-if-changed={}", src.display()); let dest = path.join( src .file_name() @@ -50,6 +51,7 @@ fn copy_binaries<'a>(binaries: ResourcePaths<'a>, target_triple: &str, path: &Pa fn copy_resources(resources: ResourcePaths<'_>, path: &Path) -> Result<()> { for src in resources { let src = src?; + println!("cargo:rerun-if-changed={}", src.display()); let dest = path.join(resource_relpath(&src)); copy_file(&src, &dest)?; } diff --git a/examples/sidecar/src-tauri/Cargo.lock b/examples/sidecar/src-tauri/Cargo.lock index 658469da7..2175ff97a 100644 --- a/examples/sidecar/src-tauri/Cargo.lock +++ b/examples/sidecar/src-tauri/Cargo.lock @@ -2567,7 +2567,7 @@ dependencies = [ [[package]] name = "tauri" -version = "1.0.0-rc.0" +version = "1.0.0-rc.2" dependencies = [ "bincode", "cfg_aliases", @@ -2610,7 +2610,7 @@ dependencies = [ [[package]] name = "tauri-build" -version = "1.0.0-rc.0" +version = "1.0.0-rc.1" dependencies = [ "anyhow", "cargo_toml", @@ -2623,7 +2623,7 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "1.0.0-rc.0" +version = "1.0.0-rc.1" dependencies = [ "base64", "blake3", @@ -2642,7 +2642,7 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "1.0.0-rc.0" +version = "1.0.0-rc.1" dependencies = [ "heck 0.4.0", "proc-macro2", @@ -2654,7 +2654,7 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "0.3.0" +version = "0.3.1" dependencies = [ "gtk", "http", @@ -2671,7 +2671,7 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "0.3.0" +version = "0.3.1" dependencies = [ "gtk", "ico", @@ -2687,7 +2687,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "1.0.0-rc.0" +version = "1.0.0-rc.1" dependencies = [ "ctor", "glob",