2020-11-04 06:57:03 +00:00
|
|
|
set -e
|
|
|
|
FullExecPath=$PWD
|
|
|
|
pushd `dirname $0` > /dev/null
|
|
|
|
FullScriptPath=`pwd`
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-11-06 05:48:05 +00:00
|
|
|
Command="$1"
|
|
|
|
if [ "$Command" == "" ]; then
|
2021-11-10 07:51:35 +00:00
|
|
|
Command="scl enable llvm-toolset-7.0 -- scl enable devtoolset-10 -- bash"
|
2020-11-04 06:57:03 +00:00
|
|
|
fi
|
|
|
|
|
2021-03-12 13:58:58 +00:00
|
|
|
docker run -it --rm --cpus=8 --memory=22g -v $HOME/Telegram/DesktopPrivate:/usr/src/DesktopPrivate -v $HOME/Telegram/tdesktop:/usr/src/tdesktop tdesktop:centos_env $Command
|