Files
photoreport/apps/desktop/src-tauri/tauri.conf.json
spark fcf684c9c4
ci / rust (pull_request) Failing after 40s
ci / typescript (pull_request) Failing after 7m44s
Desktop 0.3.18 finds the ONNX bundle script from the directory Tauri actually uses.
The 0.3.17 binary linked, then bundling stopped because the script path was three levels up from the wrong folder.
2026-10-18 10:24:56 +01:00

51 lines
1.6 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "PhotoReport",
"version": "0.3.18",
"identifier": "pt.photoreport.desktop",
"build": {
"devUrl": "http://localhost:5173",
"frontendDist": "../../app/dist",
"beforeDevCommand": "pnpm --filter @photoreport/app dev",
"beforeBuildCommand": "pnpm --filter @photoreport/app build",
"beforeBundleCommand": "bash -c 'd=\"$PWD\"; while [ \"$d\" != / ] && [ ! -f \"$d/infra/desktop/bundle-onnx.sh\" ]; do d=$(dirname \"$d\"); done; exec bash \"$d/infra/desktop/bundle-onnx.sh\"'"
},
"app": {
"windows": [
{
"title": "PhotoReport",
"width": 1440,
"height": 900,
"minWidth": 1024,
"minHeight": 680,
"backgroundColor": "#121314",
"create": false,
"label": "main"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self' 'wasm-unsafe-eval' blob:; worker-src 'self' blob:; connect-src 'self' ipc: http://ipc.localhost https://*.photoreport.pt wss://*.photoreport.pt http://localhost:3000 ws://localhost:3000; img-src 'self' data: blob: https://*.photoreport.pt http://localhost:3000; style-src 'self' 'unsafe-inline'; font-src 'self' data:"
}
},
"bundle": {
"active": true,
"resources": ["onnx/"],
"targets": "all",
"category": "Photography",
"shortDescription": "PhotoReport desktop",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
},
"plugins": {
"updater": {
"pubkey": "",
"endpoints": []
}
}
}