2014-07-25 18:34:15 +00:00
|
|
|
AppVersionStr=0.5.11
|
|
|
|
AppVersion=5011
|
2014-07-14 05:16:21 +00:00
|
|
|
|
2014-07-14 13:58:10 +00:00
|
|
|
if [ -d "./../Linux/Release/deploy/$AppVersionStr" ]; then
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Deploy folder for version $AppVersionStr already exists!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-07-17 09:42:06 +00:00
|
|
|
if [ -f "./../Linux/Release/tlinux32upd$AppVersion" ]; then
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Update file for version $AppVersion already exists!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-07-14 13:58:10 +00:00
|
|
|
if [ ! -f "./../Linux/Release/Telegram" ]; then
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Telegram not found!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-07-14 13:58:10 +00:00
|
|
|
if [ ! -f "./../Linux/Release/Updater" ]; then
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Updater not found!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Preparing version $AppVersionStr, executing Packer.."
|
2014-07-14 13:58:10 +00:00
|
|
|
cd ./../Linux/Release && ./Packer -path Telegram -path Updater -version $AppVersion && cd ./../../Telegram
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Packer done!"
|
|
|
|
|
2014-07-14 13:58:10 +00:00
|
|
|
if [ ! -d "./../Linux/Release/deploy" ]; then
|
|
|
|
mkdir "./../Linux/Release/deploy"
|
2014-07-14 05:16:21 +00:00
|
|
|
fi
|
2014-07-17 09:42:06 +00:00
|
|
|
echo "Copying Telegram, Updater and tlinux32upd$AppVersion to deploy/$AppVersionStr..";
|
2014-07-14 13:58:10 +00:00
|
|
|
mkdir "./../Linux/Release/deploy/$AppVersionStr"
|
|
|
|
mkdir "./../Linux/Release/deploy/$AppVersionStr/Telegram"
|
|
|
|
mv ./../Linux/Release/Telegram ./../Linux/Release/deploy/$AppVersionStr/Telegram/
|
|
|
|
mv ./../Linux/Release/Updater ./../Linux/Release/deploy/$AppVersionStr/Telegram/
|
2014-07-17 09:42:06 +00:00
|
|
|
mv ./../Linux/Release/tlinux32upd$AppVersion ./../Linux/Release/deploy/$AppVersionStr/
|
|
|
|
cd ./../Linux/Release/deploy/$AppVersionStr && tar -cJvf tsetup32.$AppVersionStr.tar.xz Telegram/ && cd ./../../../../Telegram
|
2014-07-14 05:16:21 +00:00
|
|
|
echo "Version $AppVersionStr prepared!";
|
|
|
|
|