stahl/src-tauri/tauri.conf.json
Markus Zoppelt ecd85aa67f fix: allow data: URIs in img-src CSP
Vite inlines small assets (like the 850-byte stahl-mark.svg used in the
sidebar, Welcome screen, and loading screen) as data: URIs. The CSP set
img-src to 'self' only, which never matches data: regardless of origin,
so the webview silently dropped every occurrence of the app's logo.
2026-07-06 13:32:14 +02:00

49 lines
1.2 KiB
JSON

{
"$schema": "../frontend/node_modules/@tauri-apps/cli/schema.json",
"productName": "Stahl Capital",
"version": "0.1.0",
"identifier": "net.zoppelt.stahl",
"build": {
"frontendDist": "../frontend/dist",
"devUrl": "http://localhost:5173",
"beforeDevCommand": "pnpm --dir ../frontend dev",
"beforeBuildCommand": "pnpm --dir ../frontend build"
},
"app": {
"windows": [
{
"title": "Stahl Capital",
"width": 1280,
"height": 800,
"minWidth": 900,
"minHeight": 600,
"resizable": true,
"fullscreen": false,
"visible": false,
"transparent": false,
"decorations": true,
"center": true
}
],
"security": {
"csp": "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"macOS": {
"frameworks": [],
"minimumSystemVersion": "10.13",
"exceptionDomain": "",
"signingIdentity": "-"
}
}
}