appId: dev.zoo.modeling-app
directories:
  output: out
  buildResources: assets
files:
  - .vite/**
  - "!node_modules/win-ca/pem/**"
mac:
  category: public.app-category.developer-tools
  artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
  target:
    - target: dmg
      arch:
        - x64
        - arm64
    - target: zip
      arch:
        - x64
        - arm64
  notarize: true
  fileAssociations:
    - ext: kcl
      name: kcl
      mimeType: text/vnd.zoo.kcl
      description: Zoo KCL File
      role: Editor
      rank: Owner
win:
  artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
  target:
    - target: nsis
      arch:
        - x64
        - arm64
  signtoolOptions:
    sign: "./scripts/sign-win.js"
    signingHashAlgorithms:
      - sha256
    publisherName: "KittyCAD Inc" # needs to be exactly like on Digicert
  icon: "assets/icon.ico"
  fileAssociations:
    - ext: kcl
      name: kcl
      mimeType: text/vnd.zoo.kcl
      description: Zoo KCL File
      role: Editor
nsis:
  oneClick: false
  perMachine: true
  allowElevation: true
  installerIcon: "assets/icon.ico"
  include: "./scripts/installer.nsh"
linux:
  artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
  target:
    - target: appImage
      arch:
        - x64
        - arm64
  fileAssociations:
    - ext: kcl
      name: kcl
      mimeType: text/vnd.zoo.kcl
      description: Zoo KCL File
      role: Editor
publish:
  - provider: generic
    url: https://dl.zoo.dev/releases/modeling-app
    channel: latest
releaseInfo:
  releaseNotesFile: release-notes.md
protocols:
  - name: Zoo Studio
    schemes: ['zoo-studio']
