From d8499da4db914f888d202a7635f8805bd7e9012f Mon Sep 17 00:00:00 2001 From: Robert MacRae Date: Sat, 24 Jan 2026 16:56:44 -0400 Subject: [PATCH] Update build-client.yml --- .github/workflows/build-client.yml | 35 ++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-client.yml b/.github/workflows/build-client.yml index 7a21c2e..97eeb16 100644 --- a/.github/workflows/build-client.yml +++ b/.github/workflows/build-client.yml @@ -29,13 +29,44 @@ jobs: cache: 'npm' cache-dependency-path: Client/package-lock.json + - name: Install system dependencies (Ubuntu) + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libnss3-dev libatk-bridge2.0-dev libdrm2 libxkbcommon-dev libxcomposite-dev libxdamage-dev libxrandr-dev libgbm-dev libxss1 libasound2-dev + + - name: Install system dependencies (macOS) + if: matrix.os == 'macos-latest' + run: | + # Install Xcode command line tools if not present + xcode-select --install 2>/dev/null || true + + - name: Install system dependencies (Windows) + if: matrix.os == 'windows-latest' + run: | + # Windows builds typically have required dependencies pre-installed + # Ensure chocolatey is available for any additional packages + choco --version || echo "Chocolatey not available" + - name: Install dependencies working-directory: ./Client - run: npm ci + run: | + if [ "${{ matrix.os }}" = "windows-latest" ]; then + npm ci --include=dev + else + npm ci + fi + shell: bash - name: Clean previous builds working-directory: ./Client - run: rm -rf dist || true + run: | + if [ "${{ matrix.os }}" = "windows-latest" ]; then + if exist dist rmdir /s /q dist + else + rm -rf dist + fi + shell: bash - name: Build for ${{ matrix.os }} working-directory: ./Client