Watch server cause Tauri to rebuild the app repeatedly
Opened this issue · 3 comments
I'm not using taurine template, but I added watch-server.js
and build-server.js
to my existing Tauri project. When I run yarn tauri dev
, it cause Tauri to rebuild the app repeatedly.
Here is my package.json
scripts:
"scripts": {
"app:dev": "next dev",
"app:build": "next build",
"start": "next start",
"lint": "next lint",
"server:dev": "node scripts/watch-server.js",
"server:build": "node scripts/build-server.js",
"dev": "run-p server:dev app:dev",
"build": "tsc && run-s server:build app:build",
"tauri": "tauri"
}
@hoangvu12 It looks like Tauri rebuilding app because it's watching the path with binary and as it changes it rebuilding app
Could you please check if build isn't changing any files inside watching directory by tauri?
@hoangvu12 It looks like Tauri rebuilding app because it's watching the path with binary and as it changes it rebuilding app
Could you please check if build isn't changing any files inside watching directory by tauri?
There is only one file (app.exe), but for some reason Tauri keeps rebuilding itself, probably because build-server
trying to move binaries?
Move binaries renames binary file to platform that is executed on. Shouldn't be a problem, but I didn't test it on Windows