From 0d3fbfe9b22b0a74a5bd4920eaacdbdf14e941c7 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Tue, 3 Feb 2026 02:19:57 +0300 Subject: [PATCH] Check updates now open release page instead auto download --- .service/version.txt | 2 +- service.bat | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.service/version.txt b/.service/version.txt index 7b0231f..70b02ff 100644 --- a/.service/version.txt +++ b/.service/version.txt @@ -1 +1 @@ -1.9.3 \ No newline at end of file +1.9.4 \ No newline at end of file diff --git a/service.bat b/service.bat index c0e574d..1e1eb8a 100644 --- a/service.bat +++ b/service.bat @@ -1,5 +1,5 @@ @echo off -set "LOCAL_VERSION=1.9.3" +set "LOCAL_VERSION=1.9.4" :: External commands if "%~1"=="status_zapret" ( @@ -335,7 +335,7 @@ cls :: Set current version and URLs set "GITHUB_VERSION_URL=https://raw.githubusercontent.com/Flowseal/zapret-discord-youtube/main/.service/version.txt" set "GITHUB_RELEASE_URL=https://github.com/Flowseal/zapret-discord-youtube/releases/tag/" -set "GITHUB_DOWNLOAD_URL=https://github.com/Flowseal/zapret-discord-youtube/releases/latest/download/zapret-discord-youtube-" +set "GITHUB_DOWNLOAD_URL=https://github.com/Flowseal/zapret-discord-youtube/releases/latest" :: Get the latest version from GitHub for /f "delims=" %%A in ('powershell -NoProfile -Command "(Invoke-WebRequest -Uri \"%GITHUB_VERSION_URL%\" -Headers @{\"Cache-Control\"=\"no-cache\"} -UseBasicParsing -TimeoutSec 5).Content.Trim()" 2^>nul') do set "GITHUB_VERSION=%%A" @@ -360,15 +360,8 @@ if "%LOCAL_VERSION%"=="%GITHUB_VERSION%" ( echo New version available: %GITHUB_VERSION% echo Release page: %GITHUB_RELEASE_URL%%GITHUB_VERSION% -set "CHOICE=" -set /p "CHOICE=Do you want to automatically download the new version? (Y/N) (default: Y) " -if "%CHOICE%"=="" set "CHOICE=Y" -if /i "%CHOICE%"=="y" set "CHOICE=Y" - -if /i "%CHOICE%"=="Y" ( - echo Opening the download page... - start "" "%GITHUB_DOWNLOAD_URL%%GITHUB_VERSION%.rar" -) +echo Opening the download page... +start "" "%GITHUB_DOWNLOAD_URL%" if "%1"=="soft" exit