- 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.
42 lines
915 B
JSON
42 lines
915 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Showy",
|
|
"version": "2.0.0",
|
|
"identifier": "x4lo.showy",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm --dir ../react_frontend dev:tauri",
|
|
"devUrl": "http://localhost:4200",
|
|
"beforeBuildCommand": "pnpm --dir ../react_frontend build:tauri",
|
|
"frontendDist": "../frontend_build"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "Showy",
|
|
"width": 1280,
|
|
"height": 800,
|
|
"minWidth": 900,
|
|
"minHeight": 600,
|
|
"decorations": false,
|
|
"backgroundColor": "#09090b",
|
|
"center": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["nsis"],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|