feat(build): 统一编译命令并默认启用双架构

This commit is contained in:
2026-02-15 23:48:37 +08:00
parent 275c8e4795
commit 94a9122f34
4 changed files with 11 additions and 11 deletions

View File

@@ -21,9 +21,9 @@ Guidelines for AI agents working in this Bun monorepo.
bun dev # Start all apps in dev mode
bun build # Build all apps
bun compile # Compile server to standalone binary (current platform, depends on build)
bun compile:linux # Compile server for Linux x64
bun compile:mac # Compile server for macOS arm64
bun compile:win # Compile server for Windows x64
bun compile:linux # Compile server for Linux binaries (x64 + arm64)
bun compile:darwin # Compile server for macOS binaries (arm64 + x64)
bun compile:windows # Compile server for Windows x64 binary
bun dist # Full packaging pipeline: server build → compile → desktop distributable (current platform)
bun dist:linux # Full pipeline → Linux distributables (x64 + arm64)
bun dist:mac # Full pipeline → macOS distributables (arm64 + x64)
@@ -37,10 +37,10 @@ bun typecheck # TypeScript check across monorepo
bun dev # Vite dev server (localhost:3000)
bun build # Production build -> .output/
bun compile # Compile to standalone binary (current platform)
bun compile:darwin # Compile for macOS (default: arm64)
bun compile:darwin # Compile for macOS (arm64 + x64)
bun compile:darwin:arm64 # Compile for macOS arm64
bun compile:darwin:x64 # Compile for macOS x64
bun compile:linux # Compile for Linux (default: x64)
bun compile:linux # Compile for Linux (x64 + arm64)
bun compile:linux:arm64 # Compile for Linux arm64
bun compile:linux:x64 # Compile for Linux x64
bun compile:windows # Compile for Windows (default: x64)

View File

@@ -26,10 +26,10 @@ bun db:studio # Drizzle Studio GUI
# Build
bun build # Production build → .output/
bun compile # Compile to standalone binary (current platform, depends on build)
bun compile:darwin # Compile for macOS (default: arm64)
bun compile:darwin # Compile for macOS (arm64 + x64)
bun compile:darwin:arm64 # Compile for macOS arm64
bun compile:darwin:x64 # Compile for macOS x64
bun compile:linux # Compile for Linux (default: x64)
bun compile:linux # Compile for Linux (x64 + arm64)
bun compile:linux:arm64 # Compile for Linux arm64
bun compile:linux:x64 # Compile for Linux x64
bun compile:windows # Compile for Windows (default: x64)

View File

@@ -6,10 +6,10 @@
"scripts": {
"build": "vite build",
"compile": "bun compile.ts",
"compile:darwin": "bun run compile:darwin:arm64",
"compile:darwin": "bun run compile:darwin:arm64 && bun run compile:darwin:x64",
"compile:darwin:arm64": "bun compile.ts --target bun-darwin-arm64",
"compile:darwin:x64": "bun compile.ts --target bun-darwin-x64",
"compile:linux": "bun run compile:linux:x64",
"compile:linux": "bun run compile:linux:x64 && bun run compile:linux:arm64",
"compile:linux:arm64": "bun compile.ts --target bun-linux-arm64",
"compile:linux:x64": "bun compile.ts --target bun-linux-x64",
"compile:windows": "bun run compile:windows:x64",

View File

@@ -11,8 +11,8 @@
"build": "turbo run build",
"compile": "turbo run compile",
"compile:linux": "turbo run compile:linux",
"compile:mac": "turbo run compile:mac",
"compile:win": "turbo run compile:win",
"compile:darwin": "turbo run compile:darwin",
"compile:windows": "turbo run compile:windows",
"dev": "turbo run dev",
"dist": "turbo run dist",
"dist:linux": "turbo run dist:linux",