From 7b61a4851b56366b3541469bb38c87838f021ff9 Mon Sep 17 00:00:00 2001 From: samialabri Date: Fri, 30 Oct 2026 00:45:24 +0400 Subject: [PATCH] Rebuild the exe icon when icons/ changes tauri-build only reruns for tauri.conf.json and capabilities/, so an incremental build after the new icons kept the old keyhole in the exe resource and the window icon. Clean builds were unaffected. Co-Authored-By: Claude Opus 5.5 --- src-tauri/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tauri/build.rs b/src-tauri/build.rs index d860e1e..1632868 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -1,3 +1,6 @@ fn main() { + // tauri-build only watches tauri.conf.json and capabilities/; without this an incremental build keeps the old + // icon in the exe resource and the window icon after the files in icons/ change. + println!("cargo:rerun-if-changed=icons"); tauri_build::build() }