{
  "name": "plugin-compass-desktop",
  "version": "0.1.0",
  "private": true,
  "main": "electron-main.js",
  "scripts": {
    "prepare-ui": "node ./scripts/sync-ui.js",
    "dev": "npm run prepare-ui && electron .",
    "build": "npm run prepare-ui && electron-builder",
    "build:win": "npm run prepare-ui && electron-builder --win",
    "build:mac": "npm run prepare-ui && electron-builder --mac",
    "build:linux": "npm run prepare-ui && electron-builder --linux",
    "postinstall": "electron-builder install-app-deps"
  },
  "dependencies": {
    "electron-updater": "^6.1.7"
  },
  "devDependencies": {
    "electron": "^28.0.0",
    "electron-builder": "^24.9.1",
    "fs-extra": "^11.2.0"
  },
  "build": {
    "appId": "com.plugincompass.desktop",
    "productName": "Plugin Compass",
    "directories": {
      "output": "dist"
    },
    "files": [
      "electron-main.js",
      "electron-preload.js",
      "ui-dist/**/*"
    ],
    "win": {
      "target": [
        "nsis"
      ],
      "icon": "assets/icon.ico"
    },
    "mac": {
      "target": "dmg",
      "icon": "assets/icon.icns"
    },
    "linux": {
      "target": "AppImage",
      "icon": "assets/icon.png"
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true
    }
  }
}
