From bc79115985b9ef7ca8b795f55338386a12d7d512 Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Mon, 9 Sep 2019 22:16:40 +0200 Subject: [PATCH] Added a build specific for mac --- tools/travis-script.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/travis-script.sh b/tools/travis-script.sh index 08b580d12..dae2c0b94 100755 --- a/tools/travis-script.sh +++ b/tools/travis-script.sh @@ -67,8 +67,8 @@ if [ "$BUILD_ANDROID" = "YES" ]; then ant debug -f projects/mtg/Android/build.xml fi -# we're building a Qt version with GUI here -if [ "$BUILD_Qt" = "YES" ]; then +# we're building a linux Qt version with GUI here +if [ "$BUILD_Qt" = "YES" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then mkdir qt-gui-build cd qt-gui-build $QMAKE ../projects/mtg/wagic-qt.pro CONFIG+=release CONFIG+=graphics @@ -84,3 +84,10 @@ if [ "$BUILD_Qt" = "YES" ]; then ../../wagic cd ../.. fi +# we're building a mac Qt version with GUI here +if [ "$BUILD_Qt" = "YES" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then + mkdir qt-gui-build + cd qt-gui-build + $QMAKE ../projects/mtg/wagic-qt.pro CONFIG+=release CONFIG+=graphics + make -j 4 dmg +fi