{
  "$schema": "https://schema.tauri.app/config/2",
  "productName": "haex-hub",
  "version": "0.1.0",
  "identifier": "space.haex.hub",
  "build": {
    "beforeDevCommand": "pnpm dev",
    "devUrl": "http://localhost:3003",
    "beforeBuildCommand": "pnpm generate",
    "frontendDist": "../dist"
  },

  "app": {
    "windows": [
      {
        "title": "haex-hub",
        "width": 800,
        "height": 600
      }
    ],
    "security": {
      "csp": {
        "default-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
        "script-src": [
          "'self'",
          "http://tauri.localhost",
          "haex-extension:",
          "'wasm-unsafe-eval'"
        ],
        "style-src": [
          "'self'",
          "http://tauri.localhost",
          "haex-extension:",
          "'unsafe-inline'"
        ],
        "connect-src": [
          "'self'",
          "http://tauri.localhost",
          "haex-extension:",
          "ipc:",
          "http://ipc.localhost",
          "ws://localhost:*"
        ],
        "img-src": [
          "'self'",
          "http://tauri.localhost",
          "haex-extension:",
          "data:",
          "blob:"
        ],
        "font-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
        "object-src": ["'none'"],
        "media-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
        "frame-src": ["haex-extension:"],
        "frame-ancestors": ["'none'"],
        "base-uri": ["'self'"]
      },
      "assetProtocol": {
        "enable": true,
        "scope": ["$APPDATA", "$RESOURCE"]
      }
    }
  },
  "bundle": {
    "active": true,
    "targets": "all",
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
      "icons/128x128@2x.png",
      "icons/icon.icns",
      "icons/icon.ico"
    ],
    "resources": ["database/vault.db"],

    "linux": {
      "appimage": {
        "bundleMediaFramework": false,
        "files": {}
      },
      "deb": {
        "files": {}
      },
      "rpm": {
        "epoch": 0,
        "files": {},
        "release": "1"
      }
    }
  }
}
