From dd113d5dc072214fe1030821c189413e039d26e2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Oct 2015 17:26:06 +0300 Subject: [PATCH] build script improved --- Telegram/Build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/Build.sh b/Telegram/Build.sh index 9e31e8f31..808004fd2 100755 --- a/Telegram/Build.sh +++ b/Telegram/Build.sh @@ -1,3 +1,5 @@ +set -e + while IFS='' read -r line || [[ -n "$line" ]]; do set $line eval $1="$2" @@ -106,8 +108,8 @@ fi if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarget" == "macstore" ]; then - touch ./SourceFiles/telegram.qrc or exit 1 - xcodebuild -project Telegram.xcodeproj -alltargets -configuration Release build or exit 1 + touch ./SourceFiles/telegram.qrc + xcodebuild -project Telegram.xcodeproj -alltargets -configuration Release build if [ ! -d "$ReleasePath/$BinaryName.app" ]; then echo "$BinaryName.app not found!"