2015-06-25 18:04:40 +00:00
|
|
|
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
|
|
|
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
|
|
|
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
|
|
|
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
2015-02-05 15:03:03 +00:00
|
|
|
DevPostfix=''
|
|
|
|
if [ "$DevChannel" != "0" ]; then
|
|
|
|
DevPostfix='.dev'
|
|
|
|
fi
|
2014-10-17 12:57:14 +00:00
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -f "./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tmacupd$AppVersion" ]; then
|
|
|
|
echo "tmacupd$AppVersion not found!"
|
|
|
|
exit 1
|
2014-10-17 12:57:14 +00:00
|
|
|
fi
|
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -f "./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.dmg" ]; then
|
|
|
|
echo "tsetup.$AppVersionStr$DevPostfix.dmg not found!"
|
|
|
|
exit 1
|
2014-10-17 12:57:14 +00:00
|
|
|
fi
|
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -f "./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tupdate$AppVersion" ]; then
|
|
|
|
echo "tupdate$AppVersion not found!"
|
|
|
|
exit 1
|
2014-10-17 12:57:14 +00:00
|
|
|
fi
|
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -f "./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tportable.$AppVersionStr$DevPostfix.zip" ]; then
|
|
|
|
echo "tportable.$AppVersionStr$DevPostfix.zip not found!"
|
|
|
|
exit 1
|
2014-10-17 12:57:14 +00:00
|
|
|
fi
|
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -f "./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.exe" ]; then
|
|
|
|
echo "tsetup.$AppVersionStr$DevPostfix.exe not found!"
|
|
|
|
exit 1
|
2014-10-17 12:57:14 +00:00
|
|
|
fi
|
|
|
|
|
2015-06-25 18:04:40 +00:00
|
|
|
if [ ! -d "./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor" ]; then
|
|
|
|
mkdir "./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix" ]; then
|
|
|
|
mkdir "./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix"
|
|
|
|
fi
|
|
|
|
|
|
|
|
scp ./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tmacupd$AppVersion tmaster:tdesktop/www/tmac/
|
|
|
|
scp ./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.dmg tmaster:tdesktop/www/tmac/
|
|
|
|
scp ./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tupdate$AppVersion tmaster:tdesktop/www/tsetup/
|
|
|
|
scp ./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tportable.$AppVersionStr$DevPostfix.zip tmaster:tdesktop/www/tsetup/
|
|
|
|
scp ./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.exe tmaster:tdesktop/www/tsetup/
|
|
|
|
|
|
|
|
mv -rv ./../../tother/tsetup/$AppVersionStrMajor/$AppVersionStr$DevPostfix ./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/
|
|
|
|
|
|
|
|
cp -v ./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tmacupd$AppVersion ./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/
|
|
|
|
cp -v ./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.dmg ./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/
|
|
|
|
cp -rv ./../Mac/Release/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/Telegram.app.dSYM ./../../../Dropbox/Telegram/deploy/$AppVersionStrMajor/$AppVersionStr$DevPostfix/
|
|
|
|
|