feat(cli): bundle SRT and use platform-native runner shells

This commit is contained in:
yiling
2026-11-17 23:08:20 +08:00
parent 07e69717e5
commit 17f14390be
31 changed files with 787 additions and 134 deletions
+2
View File
@@ -6,6 +6,7 @@ import { parseArgs } from 'node:util'
import { fileURLToPath } from 'node:url'
import { version } from '../package.json'
import { version as cliVersion } from '../apps/cli/package.json'
import { srtBundlePlugin } from './srt-bundle'
export const cliTargets = {
'darwin-arm64': 'bun-darwin-arm64',
@@ -90,6 +91,7 @@ export async function buildCliRelease(outdir: string, targets = cliTargetNames)
entrypoints: [join(repoRoot, 'apps/cli/src/index.ts')],
target: 'bun',
minify: true,
plugins: [srtBundlePlugin(...target.split('-'))],
compile: {
target: cliTargets[target],
outfile: binary,