{
  "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
  "appId": "com.forge.app",
  "productName": "Forge",
  "directories": {
    "output": "release",
    "buildResources": "build"
  },
  "files": [
    "dist-electron/**/*",
    "!node_modules",
    "!src",
    "!electron",
    "!.next",
    "!build",
    "!scripts",
    "!release"
  ],
  "extraResources": [
    {
      "from": ".next/standalone/",
      "to": "standalone/",
      "filter": ["**/*", "!node_modules", "!.next", "!.forge-data", "!.env", "!.env.*", "!forge.db*", "!release"]
    },
    {
      "from": ".next/standalone/node_modules/",
      "to": "standalone/node_modules/",
      "filter": ["**/*"]
    },
    {
      "from": ".next/standalone/.next/",
      "to": "standalone/.next/",
      "filter": ["**/*"]
    },
    {
      "from": ".next/static/",
      "to": "standalone/.next/static/",
      "filter": ["**/*"]
    },
    {
      "from": "public/",
      "to": "standalone/public/",
      "filter": ["**/*"]
    },
    {
      "from": "templates/",
      "to": "templates/",
      "filter": ["**/*"]
    },
    {
      "from": "node-runtime/",
      "to": "node-runtime/",
      "filter": ["**/*"]
    }
  ],
  "npmRebuild": false,
  "afterSign": "scripts/after-sign.js",
  "asar": true,
  "asarUnpack": [
    "**/*.node"
  ],
  "mac": {
    "category": "public.app-category.developer-tools",
    "target": [
      {
        "target": "dmg",
        "arch": ["arm64"]
      },
      {
        "target": "dir",
        "arch": ["arm64"]
      }
    ],
    "icon": "build/icon.icns",
    "darkModeSupport": true,
    "hardenedRuntime": true,
    "gatekeeperAssess": false,
    "entitlements": "build/entitlements.mac.plist",
    "entitlementsInherit": "build/entitlements.mac.inherit.plist"
  },
  "dmg": {
    "contents": [
      {
        "x": 130,
        "y": 220
      },
      {
        "x": 410,
        "y": 220,
        "type": "link",
        "path": "/Applications"
      }
    ],
    "window": {
      "width": 540,
      "height": 380
    }
  },
  "win": {
    "target": [
      {
        "target": "nsis",
        "arch": ["x64"]
      }
    ],
    "icon": "build/icon.ico"
  },
  "nsis": {
    "oneClick": false,
    "allowToChangeInstallationDirectory": true,
    "createDesktopShortcut": true,
    "createStartMenuShortcut": true,
    "shortcutName": "Forge"
  },
  "linux": {
    "target": [
      {
        "target": "AppImage",
        "arch": ["x64"]
      }
    ],
    "category": "Development",
    "icon": "build/icons"
  }
}
