/**
 * @see https://www.electron.build/configuration/configuration
 */
{
  "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
  "appId": "app.freedata",
  "asar": true,
  "afterSign": "build/notarize_macos.js",
  "productName": "FreeDATA",
  "directories": {
    "output": "release"
  },

  "asarUnpack": [
      "**/*.wav"
    ],


  "files": [
    "dist",
    "dist-electron",
    "../modem/server.dist/",
  ],

    "extraResources": [

      {
        "from": "../modem/server.dist/",
        "to": "modem",
        "filter": [
          "**/*",
          "!**/.git"
        ]

      }
    ],


  "mac": {
    "target": [
      {
        "target": "default",
        //"arch": ["universal"],
        "arch": ["arm64", "x64"],

      }
    ],
      "notarize": "false",
      "icon": "build/icon.png",
      "hardenedRuntime": true,
      "entitlements": "build/entitlements.plist",
      "entitlementsInherit": "build/entitlements.plist",
      "gatekeeperAssess": false,
      "mergeASARs": true,
      "x64ArchFiles": "**/*",
      "artifactName": "${productName}-Mac-${version}.${ext}"
  },
  "win": {
    "icon": "build/icon.png",
    "target": [
      {
        "target": "nsis",
        "arch": ["arm64", "x64"]
      }
    ],
    "artifactName": "${productName}-Windows-${version}.${ext}"
  },
  "nsis": {
    "oneClick": false,
    "perMachine": false,
    "allowToChangeInstallationDirectory": true,
    "deleteAppDataOnUninstall": true
  },
  "linux": {
    "category": "Development",
    "target": [
      "AppImage"
    ],
    "artifactName": "${productName}-${version}.${ext}"
  }
        }
