tdesktop/Telegram/DeployLinux.sh

21 lines
803 B
Bash
Raw Normal View History

2014-11-22 10:21:50 +00:00
AppVersion=`./Version.sh | awk -F " " '{print $1}'`
AppVersionStr=`./Version.sh | awk -F " " '{print $2}'`
2015-02-05 15:03:03 +00:00
DevChannel=`./Version.sh | awk -F " " '{print $3}'`
DevPostfix=''
if [ "$DevChannel" != "0" ]; then
DevPostfix='.dev'
fi
2014-10-17 13:27:05 +00:00
2015-02-05 15:03:03 +00:00
if [ ! -f "./../Linux/Release/deploy/$AppVersionStr$DevPostfix/tlinuxupd$AppVersion" ]; then
2014-10-17 13:27:05 +00:00
echo "tlinuxupd$AppVersion not found!";
exit 1
fi
2015-02-05 15:03:03 +00:00
if [ ! -f "./../Linux/Release/deploy/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.tar.xz" ]; then
echo "tsetup.$AppVersionStr$DevPostfix.tar.xz not found!"
2014-10-17 13:27:05 +00:00
exit 1
fi
2015-02-05 15:03:03 +00:00
scp ./../Linux/Release/deploy/$AppVersionStr$DevPostfix/tlinuxupd$AppVersion tmaster:tdesktop/www/tlinux/
scp ./../Linux/Release/deploy/$AppVersionStr$DevPostfix/tsetup.$AppVersionStr$DevPostfix.tar.xz tmaster:tdesktop/www/tlinux/