feat(build): 支持桌面端多架构打包矩阵

This commit is contained in:
2026-02-15 23:26:00 +08:00
parent 627e6f9dd3
commit 8245abe217
6 changed files with 72 additions and 14 deletions

View File

@@ -6,9 +6,14 @@
"scripts": {
"build": "vite build",
"compile": "bun compile.ts",
"compile:darwin": "bun compile.ts --target bun-darwin-arm64",
"compile:linux": "bun compile.ts --target bun-linux-x64",
"compile:windows": "bun compile.ts --target bun-windows-x64",
"compile:darwin": "bun run compile:darwin:arm64",
"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: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",
"compile:windows:x64": "bun compile.ts --target bun-windows-x64",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",