refactor: simplify compile.ts to single-target and add per-platform compile scripts

- Rewrite compile.ts from 112 to 66 lines: single target with auto-detect host, remove multi-target batch logic
- Add compile:linux/mac/win scripts to server, root, and turbo configs
- Wire desktop dist:* to depend on matching server compile:* (avoid unnecessary cross-platform compilation)
- Update AGENTS.md docs across root, server, and desktop
This commit is contained in:
2026-02-08 22:25:30 +08:00
parent dac6bb1643
commit e171db8196
9 changed files with 87 additions and 99 deletions

View File

@@ -25,8 +25,10 @@ bun db:studio # Drizzle Studio GUI
# Build
bun build # Production build → .output/
bun compile # Compile to standalone binary (depends on build)
# Also triggered automatically by root `bun dist`
bun compile # Compile to standalone binary (current platform, depends on build)
bun compile:linux # Compile for Linux x64
bun compile:mac # Compile for macOS arm64
bun compile:win # Compile for Windows x64
# Code Quality
bun fix # Biome auto-fix