{
  "name": "desktop-electron",
  "version": "26.1.0",
  "description": "A simple and powerful personal finance system",
  "author": "Actual",
  "main": "build/desktop-electron/index.js",
  "scripts": {
    "clean": "rm -rf dist",
    "update-client": "bin/update-client",
    "build": "yarn build:dist && electron-builder",
    "build:dist": "tsc --p tsconfig.dist.json && yarn copy-static-assets",
    "copy-static-assets": "copyfiles --exclude 'build/**/*' **/*.html icons/**/* build/desktop-electron",
    "watch": "yarn build:dist && cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron .",
    "e2e": "npx playwright test"
  },
  "dependencies": {
    "@actual-app/sync-server": "workspace:*",
    "better-sqlite3": "^12.4.1",
    "fs-extra": "^11.3.2",
    "promise-retry": "^2.0.1"
  },
  "devDependencies": {
    "@electron/notarize": "3.1.1",
    "@electron/rebuild": "4.0.1",
    "@playwright/test": "1.56.1",
    "@types/copyfiles": "^2",
    "@types/fs-extra": "^11",
    "copyfiles": "^2.4.1",
    "cross-env": "^10.1.0",
    "electron": "38.3.0",
    "electron-builder": "26.0.12",
    "typescript": "^5.9.3"
  },
  "build": {
    "appId": "com.actualbudget.actual",
    "files": [
      "build",
      "!node_modules/@actual-app/web",
      "node_modules/@actual-app/web/build",
      "node_modules/@actual-app/web/package.json",
      "!node_modules/better-sqlite3/{benchmark,src,bin,docs,deps,build/Release/obj,build/Release/sqlite3.a,build/Release/test_extension.node}",
      "!**/*.js.map",
      "!**/stats.json",
      "!build/client-build/sql-wasm.wasm",
      "!build/loot-core/lib-dist/electron/{browser,bundle.mobile*}"
    ],
    "beforePack": "./build/desktop-electron/beforePackHook.js",
    "mac": {
      "category": "public.app-category.finance",
      "icon": "icons/icon.icns",
      "hardenedRuntime": true,
      "gatekeeperAssess": false,
      "artifactName": "${productName}-mac-${arch}.${ext}",
      "target": [
        {
          "target": "dmg",
          "arch": [
            "x64",
            "arm64"
          ]
        }
      ]
    },
    "linux": {
      "target": [
        {
          "target": "flatpak",
          "arch": [
            "x64"
          ]
        },
        {
          "target": "AppImage",
          "arch": [
            "x64",
            "arm64"
          ]
        }
      ],
      "artifactName": "${productName}-linux-${arch}.${ext}",
      "extraResources": [
        "extra-resources/linux"
      ],
      "desktop": {
        "entry": {
          "Categories": "Finance;Office",
          "Keywords": "Budget;Finance;Money;Expenses;Savings;"
        }
      },
      "executableName": "actual"
    },
    "flatpak": {
      "runtimeVersion": "24.08",
      "baseVersion": "24.08"
    },
    "win": {
      "target": [
        {
          "target": "appx",
          "arch": [
            "ia32",
            "x64",
            "arm64"
          ]
        },
        {
          "target": "nsis",
          "arch": [
            "ia32",
            "x64",
            "arm64"
          ]
        }
      ],
      "icon": "icons/icon.png",
      "artifactName": "${productName}-windows-${arch}.${ext}"
    },
    "appx": {
      "identityName": "actualbudget.org.ActualBudget",
      "publisherDisplayName": "actualbudget.org",
      "displayName": "Actual Budget",
      "publisher": "CN=19454997-90E1-4473-879D-96D6A77A6056"
    },
    "npmRebuild": false
  },
  "productName": "Actual"
}
