chore(core): translate build-script console logs to English

Mirror the English-only convention already used in the Electron/UI
scripts. Covers dev.ts (start dev server / build Player UI / compile
dev binary) and release.ts (build all-platform binaries / package /
clean). Behaviour unchanged — message text only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
caorushizi
2026-04-21 13:55:34 +08:00
parent fbf31d706c
commit e5bcd7a224
2 changed files with 12 additions and 14 deletions
+5 -5
View File
@@ -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}`);
}
+7 -9
View File
@@ -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,