2017-02-23 21:37:24 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-04-27 12:03:10 +00:00
|
|
|
set -e
|
|
|
|
FullExecPath=$PWD
|
|
|
|
pushd `dirname $0` > /dev/null
|
|
|
|
FullScriptPath=`pwd`
|
|
|
|
popd > /dev/null
|
|
|
|
|
2019-09-26 09:52:36 +00:00
|
|
|
if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
|
2016-04-27 12:03:10 +00:00
|
|
|
echo ""
|
|
|
|
echo "This script is for building the production version of Telegram Desktop."
|
|
|
|
echo ""
|
|
|
|
echo "For building custom versions please visit the build instructions page at:"
|
|
|
|
echo "https://github.com/telegramdesktop/tdesktop/#build-instructions"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
Error () {
|
|
|
|
cd $FullExecPath
|
|
|
|
echo "$1"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
cd $FullScriptPath/../../../../
|
|
|
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
|
|
|
tx pull -f -l $line
|
|
|
|
done < tdesktop/Telegram/Resources/langs/list
|
|
|
|
tx push -s
|
|
|
|
|
|
|
|
cd $FullExecPath
|