Include archive size in Telegram notification for x64 build. Adjust build_x64.bat to calculate and append file size to update messages.
This commit is contained in:
parent
8d86d5f835
commit
35b2b3bcaa
@ -136,7 +136,9 @@ if %ERRORLEVEL% neq 0 (
|
|||||||
)
|
)
|
||||||
echo Upload URL: !DOWNLOAD_URL!
|
echo Upload URL: !DOWNLOAD_URL!
|
||||||
|
|
||||||
curl -s -X POST "https://api.telegram.org/bot%TG_BOT_TOKEN%/sendMessage" -d "chat_id=%TG_CHAT_ID%" -d "text=ARC x64 v!CURRENT_VERSION!: !DOWNLOAD_URL!"
|
REM Ссылка на скачивание новой версии в Telegram. Голый http-URL Telegram делает
|
||||||
|
REM кликабельным сам, parse_mode не нужен.
|
||||||
|
curl -s -X POST "https://api.telegram.org/bot%TG_BOT_TOKEN%/sendMessage" -d "chat_id=%TG_CHAT_ID%" -d "text=ARC x64 v!CURRENT_VERSION! [!CHANNEL!]: !DOWNLOAD_URL!"
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
echo ERROR: Failed to send message to Telegram
|
echo ERROR: Failed to send message to Telegram
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user