54fa8ab117
The default build (default = candle-cuda) load-time-imports the CUDA runtime, so it crashes on any machine without the toolkit. Add a CUDA release variant that bundles the redistributable runtime DLLs (cudart/cublas/cublasLt/curand, verified via dumpbin) so it runs on any NVIDIA machine with just a driver. - tauri.cuda.conf.json: a 'tauri build --config' overlay (CPU release untouched) that points the updater at latest-cuda.json so a CUDA install never self-updates into the CPU build - windows/cuda-hooks.nsh: NSIS hook embeds the DLLs via File and extracts them next to phokus.exe, where the Windows loader searches - build:app:cuda script; cuda-redist/ gitignored (DLLs copied from the toolkit locally), with a negation so the overlay stays tracked
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "phokus",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build:app": "tauri build",
|
|
"build:vite": "tsc && vite build",
|
|
"clean:app": "cd src-tauri && cargo clean",
|
|
"dev:app": "tauri dev",
|
|
"dev:app:cpu": "tauri dev -- --no-default-features",
|
|
"build:app:cpu": "tauri build -- --no-default-features",
|
|
"build:app:cuda": "tauri build --config src-tauri/tauri.cuda.conf.json",
|
|
"dev:vite": "vite",
|
|
"preview": "vite preview",
|
|
"tauri": "tauri"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-virtual": "^3.13.23",
|
|
"@tauri-apps/api": "^2",
|
|
"@tauri-apps/plugin-dialog": "^2.7.0",
|
|
"@tauri-apps/plugin-fs": "^2.5.0",
|
|
"@tauri-apps/plugin-notification": "^2.3.3",
|
|
"@tauri-apps/plugin-opener": "^2",
|
|
"@tauri-apps/plugin-process": "^2.3.1",
|
|
"@tauri-apps/plugin-updater": "^2.10.1",
|
|
"d3-force": "^3.0.0",
|
|
"framer-motion": "^12.38.0",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@tauri-apps/cli": "^2",
|
|
"@types/d3-force": "^3.0.10",
|
|
"@types/react": "^19.1.8",
|
|
"@types/react-dom": "^19.1.6",
|
|
"@vitejs/plugin-react": "^4.6.0",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "~5.8.3",
|
|
"vite": "^7.0.4"
|
|
}
|
|
}
|