diff --git a/apps/core/scripts/dev.ts b/apps/core/scripts/dev.ts index 2a6de879..1889b4de 100644 --- a/apps/core/scripts/dev.ts +++ b/apps/core/scripts/dev.ts @@ -7,7 +7,7 @@ import { getExeExt, mkdir, runCommand, copyFile, rmrf } from "./utils"; * Start the development server */ export async function dev() { - console.log("🚀 启动开发服务器..."); + console.log("🚀 Starting development server..."); const args = [ "run", "-tags", @@ -32,7 +32,7 @@ export async function dev() { * Build player-ui and copy dist to core assets for embedding */ export async function buildPlayerUI() { - console.log("🎬 构建 Player UI..."); + console.log("🎬 Building Player UI..."); const playerUiDist = join(config.PLAYER_UI_DIR, "dist"); // Build player-ui @@ -48,14 +48,14 @@ export async function buildPlayerUI() { rmrf(config.PLAYER_ASSETS_DIR); copyFile(playerUiDist, config.PLAYER_ASSETS_DIR); - console.log(`✅ Player UI 已复制到 ${config.PLAYER_ASSETS_DIR}`); + console.log(`✅ Player UI copied to ${config.PLAYER_ASSETS_DIR}`); } /** * Compile the development build for the current platform */ export async function devBuild() { - console.log("🔨 编译开发版本..."); + console.log("🔨 Compiling development build..."); // Build and embed player-ui first await buildPlayerUI(); @@ -80,5 +80,5 @@ export async function devBuild() { if (process.platform !== "win32") { chmodSync(output, 0o755); } - console.log(`✅ 开发版本编译成功 -> ${output}`); + console.log(`✅ Development build compiled -> ${output}`); } diff --git a/apps/core/scripts/release.ts b/apps/core/scripts/release.ts index 2cb72e39..bfed8bf0 100644 --- a/apps/core/scripts/release.ts +++ b/apps/core/scripts/release.ts @@ -66,11 +66,11 @@ async function buildBinary(cfg: BuildConfig) { * Build binaries for all platforms */ export async function releaseBuild() { - console.log("🔨 构建所有平台二进制文件..."); + console.log("🔨 Building binaries for all platforms..."); mkdir(config.BIN_DIR); await Promise.all(BUILD_PLATFORMS.map(buildBinary)); - console.log("✅ 全平台二进制文件编译完成"); + console.log("✅ All-platform binaries compiled"); } /** @@ -125,24 +125,22 @@ async function packagePlatform(cfg: BuildConfig) { * Package the complete release bundles for all platforms */ async function releasePackage() { - console.log("📦 打包所有平台发布包..."); + console.log("📦 Packaging release bundles for all platforms..."); await Promise.all(PACKAGE_PLATFORMS.map(packagePlatform)); - console.log("✅ 所有平台发布包打包完成"); - console.log( - `📦 发布包位置: ${resolveReleasePath(releaseConfig.packagesDir)}/`, - ); + console.log("✅ All-platform release bundles packed"); + console.log(`📦 Output: ${resolveReleasePath(releaseConfig.packagesDir)}/`); } /** * Clean all release artifacts */ export async function releaseClean() { - console.log("🧹 清理发布产物..."); + console.log("🧹 Cleaning release artifacts..."); rmrf(config.BIN_DIR); rmrf(config.RELEASE_DIR); - console.log("✅ 发布产物清理完成"); + console.log("✅ Release artifacts cleaned"); } export const releasePackageFull = series( releaseClean,