# BrowserOS macOS Sign & Package Configuration
#
# This config signs and packages an already-built macOS application.
# Use this when you have a pre-built app and only need to sign/package it.
#
# Expects: out/Default_universal/BrowserOS.app (or architecture-specific path)
#
# Environment Variables:
#   Use !env tag to reference environment variables:
#     Example: chromium_src: !env CHROMIUM_SRC

build:
  type: release
  architecture: universal  # Expects universal binary by default

gn_flags:
  file: build/config/gn/flags.macos.release.gn

# Explicit module execution order (partial pipeline - sign & package only)
modules:
  - sign_macos
  - package_macos

# Required environment variables
# Note: CHROMIUM_SRC can be provided via --chromium-src CLI flag, YAML config, or env var
# Note: GCS_BUCKET defaults to 'nxtscape' if not set
required_envs:
  - MACOS_CERTIFICATE_NAME
  - PROD_MACOS_NOTARIZATION_APPLE_ID
  - PROD_MACOS_NOTARIZATION_TEAM_ID
  - PROD_MACOS_NOTARIZATION_PWD

# Notification settings
notifications:
  slack: true  # Enable Slack notifications for signing operations

