Fix for windows
This commit is contained in:
parent
6c5b5a91c2
commit
e7cf9a311e
@ -10,7 +10,7 @@ set CONFIG_FILE=%PROJECT_DIR%config.ini
|
|||||||
set TG_BOT_TOKEN=8256716069:AAFgZRB_0Y6KTpqFQmCxIlZiWdY5m2dR2D8
|
set TG_BOT_TOKEN=8256716069:AAFgZRB_0Y6KTpqFQmCxIlZiWdY5m2dR2D8
|
||||||
set TG_CHAT_ID=-5177086220
|
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%
|
set CURRENT_VERSION=%OLD_VERSION%
|
||||||
|
|
||||||
if "%~1"=="-up-version" (
|
if "%~1"=="-up-version" (
|
||||||
@ -21,7 +21,7 @@ if "%~1"=="-up-version" (
|
|||||||
set /a PATCH=%%C+1
|
set /a PATCH=%%C+1
|
||||||
)
|
)
|
||||||
set CURRENT_VERSION=!MAJOR!.!MINOR!.!PATCH!
|
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!
|
echo Version: !OLD_VERSION! -^> !CURRENT_VERSION!
|
||||||
) else (
|
) else (
|
||||||
echo Version: !CURRENT_VERSION!
|
echo Version: !CURRENT_VERSION!
|
||||||
|
|||||||
@ -3,7 +3,7 @@ list=ozon, black, dushanbe_city_bank
|
|||||||
|
|
||||||
[common]
|
[common]
|
||||||
currencies=USD, ARS, RUB, TJS
|
currencies=USD, ARS, RUB, TJS
|
||||||
version=1.0.63
|
version=1.0.64
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
dbPath=./database/app_data.db
|
dbPath=./database/app_data.db
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user