From 817b91960c4e05a92de8a6ecfc1efbe7c508f68b Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sat, 28 Mar 2026 20:52:59 -0400 Subject: [PATCH] fix: use electronuserland/builder Docker image for Linux builds The app-builder binary (electron-builder's internal tool) fails to spawn on plain ubuntu-latest runners due to missing shared libraries. The official electronuserland/builder Docker image has all required dependencies pre-installed and is the recommended build environment. This eliminates the ENOENT spawn error entirely. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-linux.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index df5767f..984585f 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -11,6 +11,8 @@ on: jobs: build-linux: runs-on: ubuntu-latest + container: + image: electronuserland/builder:latest steps: - name: Checkout @@ -23,22 +25,11 @@ jobs: - name: Install Linux build tools run: | - sudo apt-get update - sudo apt-get install -y rpm fakeroot dpkg libarchive-tools + apt-get update -qq + apt-get install -y -qq rpm fakeroot dpkg libarchive-tools - name: Install dependencies run: npm install --legacy-peer-deps - env: - npm_config_node_windows_skip_install: "true" - - - name: Verify app-builder binary - run: | - BINARY="node_modules/app-builder-bin/linux/x64/app-builder" - if [ ! -f "$BINARY" ]; then - echo "Binary missing, running postinstall manually..." - cd node_modules/app-builder-bin && node postinstall.js || true - fi - ls -lh $BINARY || echo "WARNING: app-builder binary still missing" - name: Vite build run: npx electron-vite build