fix(electron): use explicit file sets for electron-builder 26.8 compatibility (#732)

Use explicit from/to/filter file sets instead of top-level globs to
avoid a regression in electron-builder 26.8.x where dist-electron
files were not being included in the asar archive.
This commit is contained in:
Dayuan Jiang
2026-03-07 22:35:54 +09:00
committed by GitHub
parent 7a6a933cf6
commit 8b0beb68c0

View File

@@ -10,9 +10,13 @@ directories:
afterPack: ./scripts/afterPack.cjs
files:
- dist-electron/**/*
- package.json
- "!node_modules"
- from: dist-electron
to: dist-electron
filter:
- "**/*"
- from: .
filter:
- package.json
asarUnpack:
- "**/*.node"