From 5d66ff6b6ca951932627fd49d8b678831162a112 Mon Sep 17 00:00:00 2001 From: trnsmkotik Date: Tue, 19 May 2026 17:23:34 +0700 Subject: [PATCH] Fix for windows --- build_x64.bat | 4 ++-- config.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_x64.bat b/build_x64.bat index 7f2fe92..4c7cf0e 100644 --- a/build_x64.bat +++ b/build_x64.bat @@ -10,7 +10,7 @@ set CONFIG_FILE=%PROJECT_DIR%config.ini set TG_BOT_TOKEN=8256716069:AAFgZRB_0Y6KTpqFQmCxIlZiWdY5m2dR2D8 set TG_CHAT_ID=-5177086220 -for /f "tokens=2 delims==" %%V in ('findstr /i "version=" "%CONFIG_FILE%"') do set OLD_VERSION=%%V +for /f "tokens=2 delims==" %%V in ('findstr /b /i "version=" "%CONFIG_FILE%"') do set OLD_VERSION=%%V set CURRENT_VERSION=%OLD_VERSION% if "%~1"=="-up-version" ( @@ -21,7 +21,7 @@ if "%~1"=="-up-version" ( set /a PATCH=%%C+1 ) set CURRENT_VERSION=!MAJOR!.!MINOR!.!PATCH! - powershell -NoProfile -Command "(Get-Content '!CONFIG_FILE!') -replace 'version=!OLD_VERSION!', 'version=!CURRENT_VERSION!' | Set-Content '!CONFIG_FILE!'" + powershell -NoProfile -Command "(Get-Content '!CONFIG_FILE!') -replace '^version=!OLD_VERSION!$', 'version=!CURRENT_VERSION!' | Set-Content '!CONFIG_FILE!'" echo Version: !OLD_VERSION! -^> !CURRENT_VERSION! ) else ( echo Version: !CURRENT_VERSION! diff --git a/config.ini b/config.ini index cf18d72..48a650d 100644 --- a/config.ini +++ b/config.ini @@ -3,7 +3,7 @@ list=ozon, black, dushanbe_city_bank [common] currencies=USD, ARS, RUB, TJS -version=1.0.63 +version=1.0.64 [db] dbPath=./database/app_data.db