{
  "name": "@notesnook/desktop",
  "productName": "Notesnook",
  "description": "Your private note taking space",
  "version": "2.2.1",
  "appAppleId": "1544027013",
  "private": true,
  "main": "./build/electron.js",
  "homepage": "https://notesnook.com/",
  "repository": "https://github.com/streetwriters/notesnook",
  "dependencies": {
    "diary": "^0.3.1",
    "electron-better-ipc": "^2.0.1",
    "electron-serve": "^1.1.0",
    "electron-updater": "^5.2.1",
    "isomorphic-fetch": "^3.0.0"
  },
  "devDependencies": {
    "@types/node-fetch": "^2.6.2",
    "electron": "^19.0.8",
    "electron-builder": "^23.3.3",
    "electron-builder-notarize": "github:streetwriters/electron-builder-notarize",
    "electron-reloader": "^1.2.3",
    "esbuild": "^0.15.8"
  },
  "scripts": {
    "build": "esbuild ./electron.js ./preload.js --minify --external:electron --external:fsevents --bundle --outdir=./build --platform=node --tsconfig=tsconfig.json --define:MAC_APP_STORE=false",
    "build:mas": "esbuild ./electron.js ./preload.js --minify --external:electron --external:fsevents --bundle --outdir=./build --platform=node --tsconfig=tsconfig.json --define:MAC_APP_STORE=true",
    "pack": "rm -rf ./build && cp -r ../build ./ && npm run build && yarn electron-builder --linux AppImage && ./dist/notesnook_x86_64.AppImage"
  },
  "author": {
    "name": "Streetwriters (Private) Ltd.",
    "email": "support@streetwriters.co",
    "url": "https://streetwriters.co"
  },
  "build": {
    "appId": "org.streetwriters.notesnook",
    "productName": "Notesnook",
    "copyright": "Copyright © 2022 Streetwriters (Private) Ltd.",
    "artifactName": "notesnook_${os}_${arch}.${ext}",
    "files": [
      "!*.chunk.js.map",
      "!*.chunk.js.LICENSE.txt",
      "build/",
      "!node_modules",
      "node_modules/electron-data-storage",
      "node_modules/electron-better-ipc",
      "node_modules/diary",
      "node_modules/node-fetch",
      "node_modules/electron-updater",
      "node_modules/lazy-val",
      "node_modules/builder-util-runtime",
      "node_modules/fs-extra",
      "node_modules/js-yaml",
      "node_modules/lodash.isequal",
      "node_modules/semver",
      "node_modules/debug",
      "node_modules/ms",
      "node_modules/lru-cache",
      "node_modules/yallist",
      "node_modules/universalify",
      "node_modules/graceful-fs",
      "node_modules/at-least-node",
      "node_modules/jsonfile",
      "node_modules/sax"
    ],
    "afterSign": "electron-builder-notarize",
    "afterPack": "./scripts/removeLocales.js",
    "mac": {
      "bundleVersion": "221",
      "minimumSystemVersion": "10.14.0",
      "target": [
        {
          "target": "dmg",
          "arch": [
            "arm64",
            "x64"
          ]
        },
        {
          "target": "zip",
          "arch": [
            "arm64",
            "x64"
          ]
        }
      ],
      "category": "public.app-category.productivity",
      "darkModeSupport": true,
      "type": "distribution",
      "hardenedRuntime": true,
      "entitlements": "assets/entitlements.mac.plist",
      "entitlementsInherit": "assets/entitlements.mac.plist",
      "gatekeeperAssess": false,
      "icon": "assets/icons/app.icns"
    },
    "dmg": {
      "contents": [
        {
          "x": 130,
          "y": 220
        },
        {
          "x": 410,
          "y": 220,
          "type": "link",
          "path": "/Applications"
        }
      ],
      "icon": "assets/icons/app.icns",
      "title": "Install Notesnook"
    },
    "mas": {
      "entitlements": "assets/entitlements.mas.plist",
      "entitlementsInherit": "assets/entitlements.mas.inherit.plist",
      "entitlementsLoginHelper": "assets/entitlements.mas.loginhelper.plist",
      "hardenedRuntime": true
    },
    "win": {
      "target": [
        "nsis",
        "portable"
      ],
      "icon": "assets/icons/app.ico"
    },
    "portable": {
      "artifactName": "notesnook_${os}_${arch}_portable.${ext}"
    },
    "nsis": {
      "oneClick": true,
      "createDesktopShortcut": "always"
    },
    "linux": {
      "target": [
        "AppImage",
        "deb",
        "rpm",
        "snap"
      ],
      "category": "Office",
      "icon": "assets/icons/app.icns",
      "description": "Your private note taking space",
      "executableName": "notesnook"
    },
    "snap": {
      "autoStart": false,
      "confinement": "strict",
      "allowNativeWayland": true
    },
    "extraResources": [
      "./assets/**"
    ],
    "directories": {
      "buildResources": "assets",
      "output": "./dist/"
    },
    "publish": [
      {
        "provider": "github",
        "repo": "notesnook",
        "owner": "streetwriters"
      }
    ]
  }
}
