From a33a97cefcc038f2b0f840e805878126307b6a28 Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sat, 28 Mar 2026 20:36:55 -0400 Subject: [PATCH] fix: scope Linux build to desktop workspace, skip Windows postinstall scripts - Run npm install --ignore-scripts inside apps/desktop only (avoids node-windows postinstall breaking on Ubuntu runner) - Run electron-rebuild explicitly after install - Run build commands directly in apps/desktop working directory - arm64 reuses vite output from x64 build step Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-linux.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index b19bb36..7af26cd 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -21,21 +21,28 @@ jobs: with: node-version: '20' - - name: Install dependencies - run: npm install - - name: Install Linux build tools run: | sudo apt-get update sudo apt-get install -y rpm fakeroot dpkg + - name: Install dependencies (skip Windows-only postinstall scripts) + run: npm install --ignore-scripts + working-directory: apps/desktop + + - name: Rebuild native modules for Electron + run: npx electron-rebuild --version 33.4.11 + working-directory: apps/desktop + - name: Build Linux packages (x64) - run: npm run build:linux --workspace=apps/desktop + run: npx electron-vite build && node scripts/bundle-standalone.js && npx electron-builder --linux --x64 + working-directory: apps/desktop env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Linux packages (arm64) - run: npm run build:linux:arm64 --workspace=apps/desktop + run: npx electron-builder --linux --arm64 + working-directory: apps/desktop env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}