Replace electron with Bun compile for single-file exe distribution

This commit is contained in:
2026-03-13 04:57:12 +08:00
parent a078666173
commit 181168cba5
10 changed files with 522 additions and 5210 deletions

View File

@@ -20,7 +20,8 @@
"type-check": "tsc --noEmit",
"lint": "eslint \"./src/**/*.{ts,tsx}\" --config ../eslint.config.js",
"start": "node bin/cli.js serve",
"bundle": "pkg bin/cli.js --public --targets node18-win-x64 --output ../OpenChamber.exe"
"embed:static": "node embed-static.js",
"build:exe": "vite build && node embed-static.js && bun build entry-singlefile.js --compile --outfile OpenChamber.exe"
},
"dependencies": {
"@codemirror/lang-cpp": "^6.0.3",