fix: disable npmRebuild for Windows cross-compilation

ELECTRON_BUILDER_SKIP_NATIVE_REBUILD env var not recognized by
electron-builder 26.6.0. Use --config.npmRebuild=false CLI flag
to skip register-scheme native module rebuild.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sanasol
2026-02-20 01:35:59 +01:00
parent 3e7c7ccff3
commit 5241a502e5

View File

@@ -46,11 +46,7 @@ jobs:
- run: npm ci - run: npm ci
- name: Build Windows Packages - name: Build Windows Packages
env: run: npx electron-builder --win --publish never --config.npmRebuild=false
# Skip native module rebuild - register-scheme can't cross-compile
# It's only used by NSIS installer for URL protocol registration
ELECTRON_BUILDER_SKIP_NATIVE_REBUILD: "true"
run: npx electron-builder --win --publish never
- name: Upload to Release - name: Upload to Release
run: | run: |