Add Tauri v2 desktop app alongside Electron

- New tauri/ project: frameless 1280x800 window, loads the Vite dev
  server in dev and tauri/frontend_build in release builds.
- Starts the backend on launch (node server.js in dev, pkg backend.exe
  sidecar in release) and stops it on exit through a Windows job
  object; reuses a backend already listening on port 4000.
- Custom title bar works in Tauri (minimize, maximize, close, drag
  region) with the matching window capabilities.
- react_frontend: dev:tauri / build:tauri scripts, shared platform
  flags so Electron and Tauri builds both use the local API and hash
  router. Web and Electron builds are unchanged.
- tauri/README.md: prerequisites, dev, build, and gaps vs Electron.
This commit is contained in:
X4Lo committed 2026-11-05 18:27:40 +00:00
1 parent 06bf902ad3
commit 3144bd96c9
30 files changed
+5121 -14

No files matched your search

+3
View File
@@ -6,6 +6,8 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"dev:tauri": "cross-env VITE_TAURI=true vite",
"build:tauri": "cross-env VITE_TAURI=true vite build --outDir ../tauri/frontend_build --emptyOutDir",
"build:electron": "cross-env VITE_ELECTRON=true vite build --outDir ../electron/frontend_build",
"lint": "eslint .",
"preview": "vite preview"
@@ -15,6 +17,7 @@
"@fontsource-variable/geist": "^5.2.8",
"@hookform/resolvers": "^5.2.2",
"@tanstack/react-query": "^5.95.2",
"@tauri-apps/api": "^2.12.4",
"axios": "^1.14.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",