{
  "name": "epos-pro",
  "version": "1.0.0",
  "description": "EPOS Pro - Restaurant POS",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "build": "electron-builder --win"
  },
  "devDependencies": {
    "electron": "^31.0.0",
    "electron-builder": "^24.13.3"
  },
  "build": {
    "appId": "com.epospro.app",
    "productName": "EPOS Pro",
    "directories": {
      "output": "dist"
    },
    "files": [
      "main.js",
      "package.json",
      "preload.js",
      "icon.ico",
      "icon.png"
    ],
    "extraResources": [
      {
        "from": "../",
        "to": "www",
        "filter": [
          "**/*",
          "!desktop-app/**",
          "!**/node_modules/**",
          "!**/.git/**",
          "!**/runtime/**"
        ]
      },
      {
        "from": "runtime/php",
        "to": "php",
        "filter": [
          "**/*"
        ]
      },
      {
        "from": "runtime/mariadb",
        "to": "mariadb",
        "filter": [
          "**/*"
        ]
      }
    ],
    "asar": false,
    "win": {
      "target": [
        {
          "target": "nsis",
          "arch": [
            "x64"
          ]
        }
      ]
    },
    "nsis": {
      "oneClick": false,
      "perMachine": false,
      "allowToChangeInstallationDirectory": true,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true,
      "shortcutName": "EPOS Pro",
      "artifactName": "EPOS-Pro-Setup.exe"
    }
  }
}