build: 组装 Console 前先结束旧进程,避免文件占用
This commit is contained in:
1 parent
ab2f4d1cec
commit
68ee99a5a2
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user