From 68ee99a5a2e15be8cc4aa58f989fdaec32470a75 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 9 Sep 2026 19:31:47 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E7=BB=84=E8=A3=85=20Console=20?= =?UTF-8?q?=E5=89=8D=E5=85=88=E7=BB=93=E6=9D=9F=E6=97=A7=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E6=96=87=E4=BB=B6=E5=8D=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/build.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/build.bat b/deploy/build.bat index 8d96fa4..8aeab14 100644 --- a/deploy/build.bat +++ b/deploy/build.bat @@ -37,6 +37,9 @@ call :ensure_electron || exit /b 1 cd .. echo === [5/5] 组装便携版 Console === +REM 旧版本可能正在运行,文件被占用会导致清理失败 +taskkill /im "Scoreboard Console.exe" /f >nul 2>&1 +taskkill /im scoreboard.exe /f >nul 2>&1 rmdir /s /q "%CONSOLE_OUT%" 2>nul mkdir "%CONSOLE_OUT%" || exit /b 1 xcopy /e /i /y "console\node_modules\electron\dist" "%CONSOLE_OUT%" >nul || exit /b 1