Each platform requires its own native backend and Tauri application build.
Build the backend:
cd backend
./build.sh
Return to the project frontend:
cd ../frontend
npm run clean
npm run tauri:build:linux
Install the generated package:
sudo apt install "./src-tauri/target/release/bundle/deb/Vector Watcher_1.1.0_amd64.deb"
Build the backend:
cd backend
./build.sh
Return to the project frontend:
cd ../frontend
npm run clean
npm run tauri:build:mac
The output contains:
Vector Watcher.app and optionally Vector Watcher.dmg
Build the backend:
cd backend
.\build.ps1
Return to the project frontend:
cd ../frontend
npm run clean
npm run tauri:build:windows
The installer is generated under: src-tauri/target/release/bundle/nsis/
Tauri does not always remove old bundle artifacts.
For example, an old AppImage directory may remain even after building only a .deb.
Remove old artifacts:
rm -rf src-tauri/target/release/bundle or run npm run clean
Then rebuild:
npm run tauri:build:linux
Avoid generating unnecessary bundle formats.
Examples:
– bundles deb
– bundles app,dmg
– bundles nsis
This keeps builds faster and release artifacts cleaner.