2014-11-12 20:18:00 +00:00
|
|
|
@echo OFF
|
|
|
|
|
2014-11-22 10:23:30 +00:00
|
|
|
set "AppVersionStrSmall=0.6.12"
|
2014-11-22 09:45:04 +00:00
|
|
|
set "AppVersionStr=0.6.12"
|
2014-11-22 10:23:30 +00:00
|
|
|
set "AppVersionStrFull=0.6.12"
|
|
|
|
|
2014-11-12 20:18:00 +00:00
|
|
|
echo.
|
|
|
|
echo Preparing version %AppVersionStr%..
|
|
|
|
echo.
|
|
|
|
|
|
|
|
set "PATH=%PATH%;C:\Program Files\7-Zip;C:\Program Files (x86)\Inno Setup 5"
|
2014-07-15 06:00:54 +00:00
|
|
|
cd ..\Win32\Deploy
|
2014-11-12 20:18:00 +00:00
|
|
|
|
|
|
|
call ..\..\..\TelegramPrivate\Sign.bat Telegram.exe
|
|
|
|
if %errorlevel% neq 0 goto error1
|
|
|
|
|
|
|
|
call ..\..\..\TelegramPrivate\Sign.bat Updater.exe
|
|
|
|
if %errorlevel% neq 0 goto error1
|
|
|
|
|
2014-11-22 10:23:30 +00:00
|
|
|
iscc /dMyAppVersion=%AppVersionStrSmall% /dMyAppVersionZero=%AppVersionStr% /dMyAppFullVersion=%AppVersionStrFull% ..\..\Telegram\Setup.iss
|
2014-11-12 20:18:00 +00:00
|
|
|
if %errorlevel% neq 0 goto error1
|
|
|
|
|
|
|
|
call ..\..\..\TelegramPrivate\Sign.bat tsetup.%AppVersionStr%.exe
|
|
|
|
if %errorlevel% neq 0 goto error1
|
|
|
|
|
2014-10-20 22:49:37 +00:00
|
|
|
call Prepare.exe -path Telegram.exe -path Updater.exe
|
2014-11-12 20:18:00 +00:00
|
|
|
if %errorlevel% neq 0 goto error1
|
|
|
|
|
|
|
|
cd deploy\%AppVersionStr%
|
|
|
|
mkdir Telegram
|
|
|
|
move Telegram.exe Telegram\
|
|
|
|
7z a -mx9 tportable.%AppVersionStr%.zip Telegram\
|
|
|
|
if %errorlevel% neq 0 goto error2
|
|
|
|
|
|
|
|
echo .
|
|
|
|
echo Version %AppVersionStr% is ready for deploy!
|
|
|
|
echo .
|
|
|
|
|
|
|
|
cd ..\..\..\..\Telegram
|
|
|
|
goto eof
|
|
|
|
|
|
|
|
:error2
|
|
|
|
cd ..\..
|
|
|
|
:error1
|
2014-07-15 06:00:54 +00:00
|
|
|
cd ..\..\Telegram
|
2014-11-12 20:18:00 +00:00
|
|
|
echo ERROR occured!
|
|
|
|
exit /b %errorlevel%
|
|
|
|
|
|
|
|
:eof
|