From c9ae546d4a7381e830232e59538bc657f3d0a183 Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sat, 28 Mar 2026 20:48:44 -0400 Subject: [PATCH] fix: use plain npm install, verify app-builder binary separately - Remove --ignore-scripts (it prevented app-builder-bin postinstall) - Add binary verification step with fallback postinstall - Use npm_config_node_windows_skip_install env var for node-windows - Keep CSC_IDENTITY_AUTO_DISCOVERY=false to skip code signing Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-linux.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 4878b6e..df5767f 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -26,11 +26,19 @@ jobs: sudo apt-get update sudo apt-get install -y rpm fakeroot dpkg libarchive-tools - - name: Install root workspace dependencies - run: npm install --ignore-scripts --legacy-peer-deps + - name: Install dependencies + run: npm install --legacy-peer-deps + env: + npm_config_node_windows_skip_install: "true" - - name: Download app-builder binary - run: node node_modules/app-builder-bin/install.js + - 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