New service design (#8789)

This commit is contained in:
f0rmlyy
2026-01-07 22:50:24 +09:00
committed by GitHub
parent 104573e321
commit a1bae719ce

View File

@@ -51,31 +51,46 @@ call :game_switch_status
call :check_updates_switch_status call :check_updates_switch_status
set "menu_choice=null" set "menu_choice=null"
echo ========= v!LOCAL_VERSION! =========
echo 1. Install Service echo.
echo 2. Remove Services echo ZAPRET SERVICE MANAGER v!LOCAL_VERSION!
echo 3. Check Status echo ----------------------------------------
echo 4. Run Diagnostics echo.
echo 5. Check Updates echo :: SERVICE
echo 6. Switch Check Updates (%CheckUpdatesStatus%) echo 1. Install Service
echo 7. Switch Game Filter (%GameFilterStatus%) echo 2. Remove Services
echo 8. Switch ipset (%IPsetStatus%) echo 3. Check Status
echo 9. Update ipset list echo.
echo 10. Update hosts file (for discord voice) echo :: SETTINGS
echo 11. Run Tests echo 4. Game Filter [!GameFilterStatus!]
echo 0. Exit echo 5. IPSet Filter [!IPsetStatus!]
set /p menu_choice=Enter choice (0-11): echo 6. Auto-Update Check [!CheckUpdatesStatus!]
echo.
echo :: UPDATES
echo 7. Update IPSet List
echo 8. Update Hosts File
echo 9. Check for Updates
echo.
echo :: TOOLS
echo 10. Run Diagnostics
echo 11. Run Tests
echo.
echo ----------------------------------------
echo 0. Exit
echo.
set /p menu_choice= Select option (0-11):
if "%menu_choice%"=="1" goto service_install if "%menu_choice%"=="1" goto service_install
if "%menu_choice%"=="2" goto service_remove if "%menu_choice%"=="2" goto service_remove
if "%menu_choice%"=="3" goto service_status if "%menu_choice%"=="3" goto service_status
if "%menu_choice%"=="4" goto service_diagnostics if "%menu_choice%"=="4" goto game_switch
if "%menu_choice%"=="5" goto service_check_updates if "%menu_choice%"=="5" goto ipset_switch
if "%menu_choice%"=="6" goto check_updates_switch if "%menu_choice%"=="6" goto check_updates_switch
if "%menu_choice%"=="7" goto game_switch if "%menu_choice%"=="7" goto ipset_update
if "%menu_choice%"=="8" goto ipset_switch if "%menu_choice%"=="8" goto hosts_update
if "%menu_choice%"=="9" goto ipset_update if "%menu_choice%"=="9" goto service_check_updates
if "%menu_choice%"=="10" goto hosts_update if "%menu_choice%"=="10" goto service_diagnostics
if "%menu_choice%"=="11" goto run_tests if "%menu_choice%"=="11" goto run_tests
if "%menu_choice%"=="0" exit /b if "%menu_choice%"=="0" exit /b
goto menu goto menu
@@ -403,10 +418,10 @@ echo:
where netsh >nul 2>nul where netsh >nul 2>nul
if !errorlevel! neq 0 ( if !errorlevel! neq 0 (
call :PrintRed "[X] netsh command not found, check your PATH variable" call :PrintRed "[X] netsh command not found, check your PATH variable"
echo PATH = "%PATH%" echo PATH = "%PATH%"
echo: echo:
pause pause
goto menu goto menu
) )
:: TCP timestamps check :: TCP timestamps check
@@ -946,4 +961,4 @@ if "%extracted%"=="0" (
pause pause
exit exit
) )
exit /b 0 exit /b 0