fix(electron): explicitly include package.json in asar for electron-builder 26.8 (#731)

electron-builder 26.8.x no longer auto-includes package.json when a
custom files array is specified, causing the main entry file to not be
found in the asar archive.
This commit is contained in:
Dayuan Jiang
2026-03-07 21:37:56 +09:00
committed by GitHub
parent 05bda50b2a
commit 7a6a933cf6
+1
View File
@@ -11,6 +11,7 @@ afterPack: ./scripts/afterPack.cjs
files: files:
- dist-electron/**/* - dist-electron/**/*
- package.json
- "!node_modules" - "!node_modules"
asarUnpack: asarUnpack: