run.sh 678 B

123456789101112131415161718192021
  1. set -e
  2. FullExecPath=$PWD
  3. pushd `dirname $0` > /dev/null
  4. FullScriptPath=`pwd`
  5. popd > /dev/null
  6. if [ ! -d "$FullScriptPath/../../../../../DesktopPrivate" ]; then
  7. echo ""
  8. echo "This script is for building the production version of Telegram Desktop."
  9. echo ""
  10. echo "For building custom versions please visit the build instructions page at:"
  11. echo "https://github.com/telegramdesktop/tdesktop/#build-instructions"
  12. exit
  13. fi
  14. Command="$1"
  15. if [ "$Command" == "" ]; then
  16. Command="bash"
  17. fi
  18. docker run -it --rm --cpus=8 --memory=22g -u $(id -u) -v $HOME/Telegram/DesktopPrivate:/usr/src/DesktopPrivate -v $HOME/Telegram/tdesktop:/usr/src/tdesktop tdesktop:centos_env $Command