1
0
forked from BRT/arc

Fix for windows

This commit is contained in:
trnsmkotik 2026-05-19 17:23:34 +07:00
parent 8effc32c20
commit 5d66ff6b6c
2 changed files with 3 additions and 3 deletions

View File

@ -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!

View File

@ -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