# Copy resources configuration for Nxtscape build
# This file defines all copy operations for resources during the build process
#
# Conditional Operations:
# - Use 'build_type' field to specify when an operation should run
#   - Supported build types: debug, release, dev, prod
#   - Operations without build_type run for all builds
# - Use 'os' field to specify target operating systems
#   - Supported values: windows, macos, linux (case-sensitive)
#   - Operations without os run for all platforms
# - Use 'arch' field to specify target architectures
#   - Supported values: x64, arm64
#   - Operations without arch run for all architectures
#
# Example:
#   - name: "macOS-only Binary"
#     source: "resources/binaries/macos_only"
#     destination: "chrome/browser/resources/macos/"
#     type: "directory"
#     os: ["macos"]
#
#   - name: "ARM64-only Library"
#     source: "resources/libs/arm64_optimized"
#     destination: "chrome/browser/lib/"
#     type: "directory"
#     arch: ["arm64"]
#
#   - name: "Windows x64 DLL"
#     source: "resources/dlls/x64/special.dll"
#     destination: "chrome/browser/resources/"
#     type: "file"
#     os: ["windows"]
#     arch: ["x64"]

copy_operations:
  # Version file
  - name: "BrowserOS Version File"
    source: "resources/BROWSEROS_VERSION"
    destination: "chrome/BROWSEROS_VERSION"
    type: "file"

  # Icons - General
  - name: "Product Logo Icons"
    source: "resources/icons/*.png"
    destination: "chrome/app/theme/chromium/"
    type: "files"

  - name: "Product Logo AI Files"
    source: "resources/icons/*.ai"
    destination: "chrome/app/theme/chromium/"
    type: "files"

  - name: "Product Logo SVG Files"
    source: "resources/icons/*.svg"
    destination: "chrome/app/theme/chromium/"
    type: "files"

  # Icons - Platform specific
  - name: "ChromeOS Icons"
    source: "resources/icons/chromeos"
    destination: "chrome/app/theme/chromium/chromeos"
    type: "directory"

  - name: "Linux Icons"
    source: "resources/icons/linux"
    destination: "chrome/app/theme/chromium/linux"
    type: "directory"

  - name: "Mac Icons"
    source: "resources/icons/mac"
    destination: "chrome/app/theme/chromium/mac"
    type: "directory"

  - name: "Windows Icons"
    source: "resources/icons/win"
    destination: "chrome/app/theme/chromium/win"
    type: "directory"

  # Icons - DPI specific (100%)
  - name: "DPI 100% Icons"
    source: "resources/icons/default_100_percent"
    destination: "chrome/app/theme/default_100_percent/chromium"
    type: "directory"

  # Icons - DPI specific (200%)
  - name: "DPI 200% Icons"
    source: "resources/icons/default_200_percent"
    destination: "chrome/app/theme/default_200_percent/chromium"
    type: "directory"

  # BrowserOS Server Binary - Platform & Architecture specific
  - name: "BrowserOS Server Binary - macOS ARM64"
    source: "resources/binaries/browseros_server/browseros-server-darwin-arm64"
    destination: "chrome/browser/browseros/server/resources/bin/browseros_server"
    type: "file"
    os: ["macos"]
    arch: ["arm64"]

  - name: "BrowserOS Server Binary - macOS x64"
    source: "resources/binaries/browseros_server/browseros-server-darwin-x64"
    destination: "chrome/browser/browseros/server/resources/bin/browseros_server"
    type: "file"
    os: ["macos"]
    arch: ["x64"]

  - name: "BrowserOS Server Binary - Linux ARM64"
    source: "resources/binaries/browseros_server/browseros-server-linux-arm64"
    destination: "chrome/browser/browseros/server/resources/bin/browseros_server"
    type: "file"
    os: ["linux"]
    arch: ["arm64"]

  - name: "BrowserOS Server Binary - Linux x64"
    source: "resources/binaries/browseros_server/browseros-server-linux-x64"
    destination: "chrome/browser/browseros/server/resources/bin/browseros_server"
    type: "file"
    os: ["linux"]
    arch: ["x64"]

  - name: "BrowserOS Server Binary - Windows x64"
    source: "resources/binaries/browseros_server/browseros-server-windows-x64.exe"
    destination: "chrome/browser/browseros/server/resources/bin/browseros_server.exe"
    type: "file"
    os: ["windows"]
    arch: ["x64"]
