签出调整

This commit is contained in:
2025-11-26 16:07:31 +08:00
parent e9bf7e9e0e
commit 28808dd39e
3 changed files with 90 additions and 12 deletions

View File

@@ -1,18 +1,18 @@
@echo off
chcp 65001 >nul
echo ========================================
echo 清理并重新打包`r
echo 清理并重新打包
echo ========================================
echo.
echo [1/5] 结束所有相关进<EFBFBD>?..
echo [1/5] 结束所有相关进程...
echo 正在停止 NPQS9100...
taskkill /F /IM NPQS9100.exe 2>nul
echo 正在停止 Java...
taskkill /F /IM java.exe 2>nul
taskkill /F /IM javaw.exe 2>nul
echo <EFBFBD>?所有进程已结束
echo 所有进程已结束
timeout /t 2 /nobreak >nul
echo.
@@ -21,48 +21,48 @@ cd /d "%~dp0.."
if exist out (
rmdir /s /q out 2>nul
if exist out (
echo <EFBFBD>?删除失败,请手动删除 out 目录
echo 删除失败,请手动删除 out 目录
pause
exit /b 1
) else (
echo <EFBFBD>?out 目录已删除`r
echo out 目录已删除
)
) else (
echo <EFBFBD>?out 目录不存在`r
echo out 目录不存在
)
echo.
echo [3/5] 构建前端代码...
call npm run build-frontend
if %errorlevel% neq 0 (
echo <EFBFBD>?前端构建失败
echo 前端构建失败
pause
exit /b 1
)
echo <EFBFBD>?前端代码构建完成
echo 前端代码构建完成
echo.
echo [4/5] 构建 electron 代码...
call npm run build-electron
if %errorlevel% neq 0 (
echo <EFBFBD>?electron 构建失败
echo electron 构建失败
pause
exit /b 1
)
echo <EFBFBD>?electron 代码构建完成
echo electron 代码构建完成
echo.
echo [5/5] 打包 Windows 版本(包含代码加密)...
call npm run build-w
if %errorlevel% neq 0 (
echo <EFBFBD>?打包失败
echo 打包失败
pause
exit /b 1
)
echo.
echo ========================================
echo <EFBFBD>?打包完成!`r
echo 打包完成!
echo 输出目录: out\win-unpacked\
echo ========================================
echo.