build: add electron-packager and package:mac script

Add electron-packager as a dev dependency and a package:mac npm script
that compiles TypeScript and packages dual-arch (x64, arm64) macOS builds
into builds/ using the OSIT icon.
This commit is contained in:
Scott Idem
2026-04-20 14:24:17 -04:00
parent 0ebfcd18bb
commit 5a5814b2bc
2 changed files with 1259 additions and 1 deletions

1256
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,11 +7,13 @@
"start": "tsc && electron .",
"dev": "tsc && electron .",
"build": "tsc",
"watch": "tsc -w"
"watch": "tsc -w",
"package:mac": "tsc && electron-packager . aether_launcher --platform=darwin --arch=x64,arm64 --out=builds --overwrite --prune=true --icon=resources/img/osit_logo.icns"
},
"devDependencies": {
"@types/node": "^22.10.7",
"electron": "^34.0.0",
"electron-packager": "^17.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
},