|
|
@ -14,13 +14,16 @@ |
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
# --------------------------------------------------------------------- |
|
|
|
# --------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCRIPT_PATH="`pwd`" |
|
|
|
|
|
|
|
PROJECT_ROOT="$SCRIPT_PATH/../.." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
APPLICATION_NAME="OpenBoard" |
|
|
|
APPLICATION_NAME="OpenBoard" |
|
|
|
BASE_QT_DIR=~/Qt/5.5/clang_64 |
|
|
|
BASE_QT_DIR=~/Qt/5.5/clang_64 |
|
|
|
# Executables |
|
|
|
# Executables |
|
|
|
QMAKE=$BASE_QT_DIR/bin/qmake |
|
|
|
QMAKE=$BASE_QT_DIR/bin/qmake |
|
|
|
MACDEPLOYQT=$BASE_QT_DIR/bin/macdeployqt |
|
|
|
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 |
|
|
|
DSYMUTIL=/usr/bin/dsymutil |
|
|
|
STRIP=/usr/bin/strip |
|
|
|
STRIP=/usr/bin/strip |
|
|
|
PLISTBUDDY=/usr/libexec/PlistBuddy |
|
|
|
PLISTBUDDY=/usr/libexec/PlistBuddy |
|
|
@ -28,7 +31,7 @@ ICEBERG=/usr/local/bin/freeze |
|
|
|
LRELEASE=$BASE_QT_DIR/bin/lrelease |
|
|
|
LRELEASE=$BASE_QT_DIR/bin/lrelease |
|
|
|
|
|
|
|
|
|
|
|
# Directories |
|
|
|
# Directories |
|
|
|
BUILD_DIR="build/macx/release" |
|
|
|
BUILD_DIR="$PROJECT_ROOT/build/macx/release" |
|
|
|
PRODUCT_DIR="$BUILD_DIR/product" |
|
|
|
PRODUCT_DIR="$BUILD_DIR/product" |
|
|
|
BASE_QT_TRANSLATIONS_DIRECTORY=$BASE_QT_DIR/translations |
|
|
|
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`)" |
|
|
|
notify "Running OpenBoard release script (`date`)" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd $PROJECT_ROOT |
|
|
|
|
|
|
|
|
|
|
|
script_is_running=`defaults read org.oe-f.OpenBoard.release Running 2>/dev/null` |
|
|
|
script_is_running=`defaults read org.oe-f.OpenBoard.release Running 2>/dev/null` |
|
|
|
if [[ $? -eq 0 ]] && [[ "$script_is_running" = "1" ]]; then |
|
|
|
if [[ $? -eq 0 ]] && [[ "$script_is_running" = "1" ]]; then |
|
|
|
trap EXIT |
|
|
|
trap EXIT |
|
|
@ -200,7 +205,7 @@ $DSYMUTIL "$APP/Contents/MacOS/$APPLICATION_NAME" -o "$DSYM" |
|
|
|
$STRIP -S "$APP/Contents/MacOS/$APPLICATION_NAME" |
|
|
|
$STRIP -S "$APP/Contents/MacOS/$APPLICATION_NAME" |
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" == "pkg" ]; then |
|
|
|
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 |
|
|
|
#copy the standard file for working with |
|
|
|
ICEBERG_CONFIG_FILE="$APPLICATION_NAME-working.packproj" |
|
|
|
ICEBERG_CONFIG_FILE="$APPLICATION_NAME-working.packproj" |
|
|
|
cp -r $BASE_ICEBERG_CONFIG_FILE $ICEBERG_CONFIG_FILE |
|
|
|
cp -r $BASE_ICEBERG_CONFIG_FILE $ICEBERG_CONFIG_FILE |
|
|
|