{
  "$schema": "https://schema.tauri.app/config/2",
  "productName": "OpenClaw",
  "version": "0.1.0",
  "identifier": "ai.openclaw.linux",
  "build": {
    "frontendDist": "../ui"
  },
  "plugins": {
    "deep-link": {
      "desktop": {
        "schemes": ["openclaw"]
      }
    },
    "updater": {
      "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDRDODJFMzU1QTQ0MUMwNkYKUldSdndFR2tWZU9DVE9RYnlIcHFoNG1xUlQzUlloa0plQmZjY0dPbHpjWlEzWFozdmt0cHBlY2gK",
      "endpoints": [
        "https://github.com/openclaw/openclaw/releases/latest/download/latest.json"
      ]
    }
  },
  "app": {
    "withGlobalTauri": true,
    "windows": [
      {
        "label": "main",
        "title": "OpenClaw",
        "url": "index.html",
        "width": 1080,
        "height": 720,
        "minWidth": 720,
        "minHeight": 520,
        "center": true,
        "visible": true
      }
    ],
    "security": {
      "csp": "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: http: https:; connect-src ipc: http://ipc.localhost",
      "capabilities": [
        {
          "identifier": "local-companion",
          "description": "Local setup screens can invoke app commands and receive installer progress.",
          "local": true,
          "windows": ["main"],
          "permissions": [
            "allow-bootstrap",
            "allow-build-info",
            "allow-check-for-updates",
            "allow-connect-discovered-gateway",
            "allow-discover-gateways",
            "allow-gateway-action",
            "allow-install-cli",
            "allow-open-release-page",
            "allow-relaunch",
            "allow-updater-ready",
            "core:event:allow-listen",
            "core:event:allow-unlisten",
            "process:allow-restart",
            "updater:default"
          ]
        },
        {
          "identifier": "canvas-renderer",
          "description": "The bundled Canvas renderer can relay A2UI actions.",
          "local": true,
          "windows": ["canvas"],
          "permissions": ["allow-canvas-a2ui-action"]
        },
        {
          "identifier": "quickchat",
          "description": "Quick Chat can select agents, configure its shortcut, send messages, render hosted widgets, and receive window events.",
          "local": true,
          "webviews": ["quickchat"],
          "permissions": [
            "allow-quickchat",
            "core:event:allow-listen",
            "core:event:allow-unlisten"
          ]
        }
      ]
    }
  },
  "bundle": {
    "active": true,
    "createUpdaterArtifacts": true,
    "category": "Utility",
    "shortDescription": "OpenClaw Linux companion",
    "longDescription": "Installs OpenClaw, manages the local Gateway service, and hosts the Control UI.",
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
      "icons/128x128@2x.png",
      "icons/icon.png"
    ],
    "resources": {
      "../../../scripts/install-cli.sh": "install-cli.sh"
    },
    "macOS": {
      "minimumSystemVersion": "13.0"
    }
  }
}
