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 <noreply@anthropic.com>
This commit is contained in:
@@ -26,11 +26,19 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y rpm fakeroot dpkg libarchive-tools
|
sudo apt-get install -y rpm fakeroot dpkg libarchive-tools
|
||||||
|
|
||||||
- name: Install root workspace dependencies
|
- name: Install dependencies
|
||||||
run: npm install --ignore-scripts --legacy-peer-deps
|
run: npm install --legacy-peer-deps
|
||||||
|
env:
|
||||||
|
npm_config_node_windows_skip_install: "true"
|
||||||
|
|
||||||
- name: Download app-builder binary
|
- name: Verify app-builder binary
|
||||||
run: node node_modules/app-builder-bin/install.js
|
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
|
- name: Vite build
|
||||||
run: npx electron-vite build
|
run: npx electron-vite build
|
||||||
|
|||||||
Reference in New Issue
Block a user