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

+8
View File
@@ -51,6 +51,9 @@ importers:
'@tanstack/react-query':
specifier: ^5.95.2
version: 5.100.8(react@19.2.5)
'@tauri-apps/api':
specifier: ^2.12.4
version: 2.12.4
axios:
specifier: ^1.20.0
version: 1.21.0(debug@4.4.3(supports-color@7.2.0))(supports-color@7.2.0)
@@ -798,6 +801,9 @@ packages:
peerDependencies:
react: ^18 || ^19
'@tauri-apps/api@2.12.4':
resolution: {integrity: sha512-pVmfis+4zT8H0Qhp3xPZx9Ju7kpzvA6rr/PSJPyuwfvucTQ8sVt61NYU9KMkK703UFlYadFmjKA4HhybOtN0gg==}
'@ts-morph/common@0.27.0':
resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}
@@ -3435,6 +3441,8 @@ snapshots:
'@tanstack/query-core': 5.100.8
react: 19.2.5
'@tauri-apps/api@2.12.4': {}
'@ts-morph/common@0.27.0':
dependencies:
fast-glob: 3.3.3