Files
photoreport/apps/desktop/src-tauri/tauri.conf.json
spark a8a887e82f
ci / rust (pull_request) Successful in 11m30s
ci / typescript (pull_request) Successful in 15m21s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 23m40s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 41m54s
Remember a dropped folder from the window event, so the contact sheet can open it.
The main window delivers the drop as a window event. Recording it only on the webview event left the folder unknown, and opening it was refused.
2026-10-23 17:36:34 +01:00

51 lines
1.6 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "PhotoReport",
"version": "0.3.23",
"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": []
}
}
}