From 5be27ff3c0497897debc9d6f730f6f198fb2db98 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Tue, 19 Apr 2016 14:08:51 +0200 Subject: [PATCH] Corrected release script for OSX following its relocation --- release_scripts/osx/release.macx.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/release_scripts/osx/release.macx.sh b/release_scripts/osx/release.macx.sh index b3a0d3a4..4d0b1ea3 100755 --- a/release_scripts/osx/release.macx.sh +++ b/release_scripts/osx/release.macx.sh @@ -14,13 +14,16 @@ # along with this program. If not, see . # --------------------------------------------------------------------- +SCRIPT_PATH="`pwd`" +PROJECT_ROOT="$SCRIPT_PATH/../.." + APPLICATION_NAME="OpenBoard" BASE_QT_DIR=~/Qt/5.5/clang_64 # Executables QMAKE=$BASE_QT_DIR/bin/qmake MACDEPLOYQT=$BASE_QT_DIR/bin/macdeployqt -DMGUTIL="`pwd`/../OpenBoard-ThirdParty/refnum/dmgutil/dmgutil.pl" +DMGUTIL="$PROJECT_ROOT/../OpenBoard-ThirdParty/refnum/dmgutil/dmgutil.pl" DSYMUTIL=/usr/bin/dsymutil STRIP=/usr/bin/strip PLISTBUDDY=/usr/libexec/PlistBuddy @@ -28,7 +31,7 @@ ICEBERG=/usr/local/bin/freeze LRELEASE=$BASE_QT_DIR/bin/lrelease # Directories -BUILD_DIR="build/macx/release" +BUILD_DIR="$PROJECT_ROOT/build/macx/release" PRODUCT_DIR="$BUILD_DIR/product" BASE_QT_TRANSLATIONS_DIRECTORY=$BASE_QT_DIR/translations @@ -106,6 +109,8 @@ trap "defaults write org.oe-f.OpenBoard.release Running -bool NO" EXIT notify "Running OpenBoard release script (`date`)" +cd $PROJECT_ROOT + script_is_running=`defaults read org.oe-f.OpenBoard.release Running 2>/dev/null` if [[ $? -eq 0 ]] && [[ "$script_is_running" = "1" ]]; then trap EXIT @@ -200,7 +205,7 @@ $DSYMUTIL "$APP/Contents/MacOS/$APPLICATION_NAME" -o "$DSYM" $STRIP -S "$APP/Contents/MacOS/$APPLICATION_NAME" if [ "$1" == "pkg" ]; then - BASE_ICEBERG_CONFIG_FILE="$APPLICATION_NAME.packproj" + BASE_ICEBERG_CONFIG_FILE="$SCRIPT_PATH/$APPLICATION_NAME.packproj" #copy the standard file for working with ICEBERG_CONFIG_FILE="$APPLICATION_NAME-working.packproj" cp -r $BASE_ICEBERG_CONFIG_FILE $ICEBERG_CONFIG_FILE