feat(desktop-client): add afterPack hook to clean up unnecessary localization files and include certificate files for code signing
Deployment Config CI / Deployment Config (push) Successful in 23s
Frontend CI / Frontend (push) Successful in 2m25s

This commit is contained in:
2026-05-01 16:32:12 +08:00
parent a9af6c634c
commit fb1351d82b
6 changed files with 63 additions and 6 deletions
+1
View File
@@ -8,6 +8,7 @@ compression: maximum
removePackageScripts: true
removePackageKeywords: true
asar: true
afterPack: build/afterPack.cjs # 签名前裁掉非 en/zh_CN 的本地化文件
asarUnpack:
- "**/node_modules/better-sqlite3/build/Release/**"
- "**/node_modules/better-sqlite3/lib/**"