From 1befccec22bcb58028728556f18e3433702ad769 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Mon, 1 Sep 2025 23:27:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9E=84=E5=BB=BA=E5=87=BA=E9=94=99?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=80=80=E5=87=BA=E6=9E=84=E5=BB=BA=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/build-game.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/build-game.ts b/script/build-game.ts index 826a78e..b464764 100644 --- a/script/build-game.ts +++ b/script/build-game.ts @@ -11,7 +11,6 @@ import { createWriteStream } from 'fs'; import { zip } from 'compressing'; import { RequiredData, RequiredIconsData, ResourceType } from './types'; import { splitResource, SplittedResource } from './build-resource'; -import { sum } from 'lodash-es'; import { formatSize } from './utils'; // 资源分离步骤的单包大小,默认 2M,可以自行调整 @@ -339,6 +338,7 @@ async function buildGame() { } catch (e) { logProgress(0, ProgressStatus.Fail); console.error(e); + process.exit(1); } logProgress(1, ProgressStatus.Working); @@ -411,8 +411,6 @@ async function buildGame() { process.exit(1); } - logProgress(3, ProgressStatus.Working); - // 解析全塔属性 const dataFile = await readFile( resolve(process.cwd(), 'public/project/data.js'), @@ -452,6 +450,7 @@ async function buildGame() { } catch (e) { logProgress(3, ProgressStatus.Fail); console.error(e); + process.exit(1); } //#region 压缩字体