31 lines
617 B
Bash
Executable File
31 lines
617 B
Bash
Executable File
set -e
|
|
FullExecPath=$PWD
|
|
pushd `dirname $0` > /dev/null
|
|
FullScriptPath=`pwd`
|
|
popd > /dev/null
|
|
|
|
FileName="$1"
|
|
|
|
if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
|
|
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
|
|
}
|
|
|
|
if [ ! -f "$FileName" ]; then
|
|
Error "File '$FileName' not found."
|
|
fi
|
|
|
|
cd "$FullScriptPath"
|
|
python refresh.py $FileName
|
|
|