From 94a9122f3448395a3af445db4ed339fe6550a570 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 15 Feb 2026 23:48:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(build):=20=E7=BB=9F=E4=B8=80=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=91=BD=E4=BB=A4=E5=B9=B6=E9=BB=98=E8=AE=A4=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=8F=8C=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 10 +++++----- apps/server/AGENTS.md | 4 ++-- apps/server/package.json | 4 ++-- package.json | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7842abc..b9334fa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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) diff --git a/apps/server/AGENTS.md b/apps/server/AGENTS.md index 828304d..350a9a1 100644 --- a/apps/server/AGENTS.md +++ b/apps/server/AGENTS.md @@ -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) diff --git a/apps/server/package.json b/apps/server/package.json index c70e17e..28b5576 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -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", diff --git a/package.json b/package.json index 741a7da..c37733f 100644 --- a/package.json +++ b/package.json @@ -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",