Skip to content
Snippets Groups Projects
  • Michael Clark's avatar
    9108b633
    :electron: Notarize the mac desktop app (#3300) · 9108b633
    Michael Clark authored
    * adding notarization stuff back in
    
    * win csc settings so win build doesnt try to sign with mac stuff
    
    * windows doesnt need to know about mac build
    
    * teamid env var instead of config val as per docs
    
    * for testing purposes only
    
    * probably wont work
    
    * yet, didnt work
    
    * try this
    
    * update notarize
    
    * removing test code
    
    * add release notes
    :electron: Notarize the mac desktop app (#3300)
    Michael Clark authored
    * adding notarization stuff back in
    
    * win csc settings so win build doesnt try to sign with mac stuff
    
    * windows doesnt need to know about mac build
    
    * teamid env var instead of config val as per docs
    
    * for testing purposes only
    
    * probably wont work
    
    * yet, didnt work
    
    * try this
    
    * update notarize
    
    * removing test code
    
    * add release notes
This project manages its dependencies using npm. Learn more
package.json 2.82 KiB
{
  "name": "desktop-electron",
  "author": "Actual",
  "productName": "Actual",
  "description": "A simple and powerful personal finance system",
  "version": "24.8.3",
  "scripts": {
    "clean": "rm -rf dist",
    "update-client": "bin/update-client",
    "build": "yarn build:dist && electron-builder",
    "build:dist": "tsc --p tsconfig.dist.json && yarn copy-static-assets",
    "copy-static-assets": "copyfiles --exclude 'build/**/*' **/*.html icons/**/* appx/**/* build",
    "watch": "yarn build:dist && cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron ."
  },
  "main": "build/index.js",
  "build": {
    "appId": "com.actualbudget.actual",
    "files": [
      "!node_modules/loot-core/src{,/**/*}",
      "!node_modules/loot-core/lib-dist/{browser,bundle.mobile*}",
      "!**/*.js.map",
      "!node_modules/@jlongster/sql.js",
      "!node_modules/absurd-sql",
      "!node_modules/better-sqlite3/{benchmark,src,bin,docs,deps,build/Release/obj,build/Release/sqlite3.a,build/Release/test_extension.node}",
      "build"
    ],
    "beforePack": "./build/beforePackHook.js",
    "mac": {
      "category": "public.app-category.finance",
      "icon": "icons/icon.icns",
      "hardenedRuntime": true,
      "gatekeeperAssess": false,
      "artifactName": "${productName}-mac-${arch}.${ext}",
      "notarize": {
        "teamId": "79ANZ983YF"
      },
      "target": [
        {
          "target": "dmg",
          "arch": [
            "x64",
            "arm64"
          ]
        }
      ]
    },
    "linux": {
      "target": [
        "flatpak",
        "AppImage"
      ],
      "artifactName": "${productName}-linux.${ext}"
    },
    "flatpak": {
      "runtimeVersion": "23.08",
      "baseVersion": "23.08"
    },
    "win": {
      "target": [
        {
          "target": "appx",
          "arch": [
            "ia32",
            "x64",
            "arm64"
          ]
        },
        {
          "target": "nsis",
          "arch": [