refactor: remove Windows prebuilt native module download step and update package handling in build process
Some checks failed
Release Electron App / release-desktop (push) Failing after 3m40s

This commit is contained in:
2026-03-03 18:04:04 +01:00
parent 603d8f0e7e
commit dc44cbc9f0
2 changed files with 55 additions and 17 deletions

View File

@@ -37,22 +37,6 @@ jobs:
env:
WINEDEBUG: '-all'
- name: Download Windows prebuilt native modules
shell: bash
run: |
ELECTRON_VERSION=$(node -e "console.log(require('electron/package.json').version)")
echo "Downloading prebuilt native modules for Electron ${ELECTRON_VERSION} (win32/x64)..."
# better-sqlite3
cd node_modules/better-sqlite3
npx --yes prebuild-install -r electron -t ${ELECTRON_VERSION} --platform win32 --arch x64 --verbose
cd ../..
# keytar
cd node_modules/keytar
npx --yes prebuild-install -r electron -t ${ELECTRON_VERSION} --platform win32 --arch x64 --verbose || echo "keytar prebuilt not available, skipping"
cd ../..
- name: Make App (Windows)
run: npm run make -- --platform=win32 --arch=x64
env: