{
  "name": "claude-pet",
  "version": "2.0.14",
  "description": "Codex Pets 相容的 Claude Code 桌面寵物（spriteVersionNumber 2：9 個動作列 + 16 方向追視）",
  "main": "main.js",
  "private": true,
  "scripts": {
    "start": "electron .",
    "hooks:install": "node scripts/install-hooks.js",
    "hooks:uninstall": "node scripts/uninstall-hooks.js",
    "autostart:install": "node scripts/autostart.js install",
    "autostart:uninstall": "node scripts/autostart.js uninstall",
    "autostart:status": "node scripts/autostart.js status",
    "predist": "npm version patch --no-git-tag-version",
    "dist": "electron-builder --win",
    "pack": "electron-builder --win --dir",
    "release": "node scripts/release.js",
    "predist:portable": "npm version patch --no-git-tag-version",
    "dist:portable": "electron-builder --win portable"
  },
  "devDependencies": {
    "electron": "^43.4.1",
    "electron-builder": "^26.0.12"
  },
  "author": "JianMiau",
  "build": {
    "appId": "com.jianmiau.claude-pet",
    "productName": "Claude Pet",
    "copyright": "JianMiau",
    "directories": {
      "output": "dist",
      "buildResources": "build"
    },
    "files": [
      "main.js",
      "preload.js",
      "renderer/**/*",
      "lib/**/*",
      "hook/**/*",
      "package.json"
    ],
    "asarUnpack": [
      "hook/**/*"
    ],
    "win": {
      "target": [
        {
          "target": "nsis",
          "arch": [
            "x64"
          ]
        },
        {
          "target": "portable",
          "arch": [
            "x64"
          ]
        },
        {
          "target": "zip",
          "arch": [
            "x64"
          ]
        }
      ],
      "icon": "build/icon.ico"
    },
    "nsis": {
      "oneClick": false,
      "perMachine": false,
      "allowToChangeInstallationDirectory": true,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true,
      "shortcutName": "Claude Pet",
      "deleteAppDataOnUninstall": false,
      "artifactName": "${productName}-${version}-setup.${ext}"
    },
    "portable": {
      "artifactName": "${productName}-${version}-portable.${ext}",
      "unpackDirName": "ClaudePet",
      "requestExecutionLevel": "user"
    },
    "extraFiles": [
      {
        "from": "pets",
        "to": "pets"
      }
    ]
  }
}
