[patch] 新增自动更新功能 模块 优化更新后打开--不被遮挡

This commit is contained in:
2025-10-29 15:56:04 +08:00
parent 89d09777a0
commit e024150c5a

View File

@@ -335,10 +335,10 @@ REM Cleanup installer
echo INFO: Cleaning up installer... echo INFO: Cleaning up installer...
del /f /q "{installer_path}" 2>nul del /f /q "{installer_path}" 2>nul
REM Start new version REM Start new version (with --after-update flag to show window on top)
echo INFO: Starting new version... echo INFO: Starting new version...
if exist "{install_dir}\\{exe_name}" ( if exist "{install_dir}\\{exe_name}" (
start "" "{install_dir}\\{exe_name}" start "" "{install_dir}\\{exe_name}" --after-update
echo OK: Program started successfully echo OK: Program started successfully
) else ( ) else (
echo ERROR: Program file not found: {exe_name} echo ERROR: Program file not found: {exe_name}