# Packaging for download. Run `npm run dist:mac` (signed) or
# `npm run release:mac` (signed and notarized). See the README.

appId: io.github.ziv.inhouse
productName: Inhouse
copyright: Copyright © 2026 Ziv Perry

# build/ holds the icon: icon.svg is the drawing, icon.png and icon.icns are
# made from it (see the README).
directories:
  output: dist
  buildResources: build

# Only the built code. Sources and .env stay out; the Google client from .env
# is already compiled into out/main at build time.
files:
  - out/**
  - package.json

# The model runtime loads native libraries, which cannot be loaded from inside
# the archive.
asarUnpack:
  - node_modules/@node-llama-cpp/**
  - node_modules/node-llama-cpp/bin/**
  - node_modules/node-llama-cpp/llama/localBuilds/**

# The model runtime ships ready-made binaries. Nothing is compiled when packaging.
npmRebuild: false

mac:
  category: public.app-category.productivity
  icon: build/icon.icns
  artifactName: ${productName}-${version}-mac-${arch}.${ext}
  # Apple Silicon only: that is the only ready-made model runtime installed here.
  target:
    - target: dmg
      arch: arm64
    - target: zip
      arch: arm64
  # Signed with the "Developer ID Application" certificate found in the keychain.
  # Notarized only when APPLE_KEYCHAIN_PROFILE names saved notarytool credentials.
  hardenedRuntime: true
