refresh.sh 617 B

123456789101112131415161718192021222324252627282930
  1. set -e
  2. FullExecPath=$PWD
  3. pushd `dirname $0` > /dev/null
  4. FullScriptPath=`pwd`
  5. popd > /dev/null
  6. FileName="$1"
  7. if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
  8. echo ""
  9. echo "This script is for building the production version of Telegram Desktop."
  10. echo ""
  11. echo "For building custom versions please visit the build instructions page at:"
  12. echo "https://github.com/telegramdesktop/tdesktop/#build-instructions"
  13. exit
  14. fi
  15. Error () {
  16. cd $FullExecPath
  17. echo "$1"
  18. exit 1
  19. }
  20. if [ ! -f "$FileName" ]; then
  21. Error "File '$FileName' not found."
  22. fi
  23. cd "$FullScriptPath"
  24. python refresh.py $FileName