mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-12-10 05:19:45 +05:00
Улучшение системы обновления, что бы она не мешала запуску запрета (#4143)
This commit is contained in:
20
service.bat
20
service.bat
@@ -11,6 +11,10 @@ if "%~1"=="check_updates" (
|
|||||||
call :service_check_updates soft
|
call :service_check_updates soft
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
|
if "%~1"=="start_update" (
|
||||||
|
call :service_start_update soft
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
if "%~1"=="load_game_filter" (
|
if "%~1"=="load_game_filter" (
|
||||||
call :game_switch_status
|
call :game_switch_status
|
||||||
@@ -251,6 +255,15 @@ goto menu
|
|||||||
|
|
||||||
:: CHECK UPDATES =======================
|
:: CHECK UPDATES =======================
|
||||||
:service_check_updates
|
:service_check_updates
|
||||||
|
if "%1"=="soft" (
|
||||||
|
start /b service start_update
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
goto :service_start_update
|
||||||
|
|
||||||
|
|
||||||
|
:service_start_update
|
||||||
|
|
||||||
chcp 437 > nul
|
chcp 437 > nul
|
||||||
cls
|
cls
|
||||||
|
|
||||||
@@ -266,7 +279,7 @@ for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri \"%GITHUB
|
|||||||
if not defined GITHUB_VERSION (
|
if not defined GITHUB_VERSION (
|
||||||
echo Warning: failed to fetch the latest version. Check your internet connection. This warning does not affect the operation of zapret
|
echo Warning: failed to fetch the latest version. Check your internet connection. This warning does not affect the operation of zapret
|
||||||
pause
|
pause
|
||||||
if "%1"=="soft" exit /b
|
if "%1"=="soft" exit
|
||||||
goto menu
|
goto menu
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -274,7 +287,7 @@ if not defined GITHUB_VERSION (
|
|||||||
if "%LOCAL_VERSION%"=="%GITHUB_VERSION%" (
|
if "%LOCAL_VERSION%"=="%GITHUB_VERSION%" (
|
||||||
echo Latest version installed: %LOCAL_VERSION%
|
echo Latest version installed: %LOCAL_VERSION%
|
||||||
|
|
||||||
if "%1"=="soft" exit /b
|
if "%1"=="soft" exit
|
||||||
pause
|
pause
|
||||||
goto menu
|
goto menu
|
||||||
)
|
)
|
||||||
@@ -293,11 +306,12 @@ if /i "%CHOICE%"=="Y" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if "%1"=="soft" exit /b
|
if "%1"=="soft" exit
|
||||||
pause
|
pause
|
||||||
goto menu
|
goto menu
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:: DIAGNOSTICS =========================
|
:: DIAGNOSTICS =========================
|
||||||
:service_diagnostics
|
:service_diagnostics
|
||||||
chcp 437 > nul
|
chcp 437 > nul
|
||||||
|
|||||||
Reference in New Issue
Block a user