{
    "$schema": "https://schema.tauri.app/config/2",
    "productName": "TouchAI",
    "version": "1.1.0",
    "identifier": "org.touch-ai.app",
    "build": {
        "beforeDevCommand": "pnpm --filter @touchai/desktop dev",
        "devUrl": "http://localhost:1420",
        "beforeBuildCommand": "pnpm --filter @touchai/desktop build",
        "frontendDist": "../dist"
    },
    "app": {
        "windows": [
            {
                "label": "main",
                "title": "TouchAI",
                "width": 750,
                "height": 60,
                "minWidth": 420,
                "minHeight": 60,
                "decorations": false,
                "shadow": false,
                "transparent": false,
                "backgroundColor": "#fbfbf6",
                "center": true,
                "resizable": true,
                "focus": true,
                "visible": false,
                "alwaysOnTop": false,
                "skipTaskbar": true
            }
        ],
        "macOSPrivateApi": true,
        "security": {
            "csp": {
                "default-src": "'self' tauri: asset: https: http:",
                "connect-src": "'self' tauri: asset: https: http: ws: wss:",
                "script-src": "'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com https://cdn.jsdelivr.net https://unpkg.com https://esm.sh",
                "style-src": "'self' 'unsafe-inline'",
                "img-src": "'self' data: asset: https: http:",
                "font-src": "'self' data: asset:"
            },
            "dangerousDisableAssetCspModification": true,
            "assetProtocol": {
                "enable": true,
                "scope": {
                    "allow": ["**/*"],
                    "requireLiteralLeadingDot": false
                }
            }
        },
        "withGlobalTauri": true
    },
    "plugins": {
        "deep-link": {
            "desktop": {
                "schemes": ["touchai"]
            }
        }
    },
    "bundle": {
        "active": true,
        "targets": "all",
        "resources": [],
        "icon": [
            "icons/32x32.png",
            "icons/128x128.png",
            "icons/128x128@2x.png",
            "icons/icon.icns",
            "icons/icon.ico"
        ]
    }
}
