Fix macOS hash patching and update dependencies

On macOS, the integrity hash is stored in Info.plist, not embedded in
the executable binary. Added patchInfoPlistHash() and platform branching
so macOS patches Info.plist while Windows/Linux patch the binary.

Also updated dependencies for compatibility:
- @electron/asar 4.0.1 → 4.1.0 (named export change)
- chalk 4 → 5.6.2 (tagged template → function call syntax)
- @types/node 20 → 25

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Al Jarreau Arman Maulana
2026-03-21 17:08:12 +07:00
co-authored by Claude Opus 4.6
parent bbc7918678
commit 24c8828e71
3 changed files with 211 additions and 322 deletions
+3 -3
View File
@@ -14,10 +14,10 @@
},
"license": "MIT",
"dependencies": {
"@electron/asar": "^4.0.1",
"chalk": "4"
"@electron/asar": "^4.1.0",
"chalk": "5.6.2"
},
"devDependencies": {
"@types/node": "^20.14.9"
"@types/node": "^25.5.0"
}
}