From 03192c1dfd32ce40ae7b022e9f479525124c5974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= <7822554+AlexTMjugador@users.noreply.github.com> Date: Thu, 26 Jun 2025 23:46:46 +0200 Subject: [PATCH] fix(app-lib): do not softlock `tauri dev` when a Gradle build is invoked (#3847) An unforeseen consequence of PR #3833 landing was that `tauri dev` stopped working reliably, getting softlocked when the `app-lib` crate build script actually needed to build Java scripts: Gradle always modifies a few files under the `.gradle` directory when run, which get picked up by Tauri as source code changes that should trigger a rebuild, but such rebuild triggers Gradle to run and modify those files again ad infinitum. This change fixes that by adding such a directory to a documented Tauri exclusion file, restoring such functionality back. --- apps/app/.gitignore | 4 ---- packages/app-lib/.taurignore | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 packages/app-lib/.taurignore diff --git a/apps/app/.gitignore b/apps/app/.gitignore index d887d6c0b..f73fca36c 100644 --- a/apps/app/.gitignore +++ b/apps/app/.gitignore @@ -1,6 +1,2 @@ -# Generated by Cargo -# will have compiled files and executables -/target/ - # Generated by tauri, metadata generated at compile time /gen/ diff --git a/packages/app-lib/.taurignore b/packages/app-lib/.taurignore new file mode 100644 index 000000000..9b48651bb --- /dev/null +++ b/packages/app-lib/.taurignore @@ -0,0 +1,3 @@ +# State files generated by Gradle on build. If not ignored for Tauri, +# cargo tauri dev gets softlocked due to these files changing for every build +/java/.gradle