diff --git a/scripts/macOS/internal/2a_appbundle.sh b/scripts/macOS/internal/2a_appbundle.sh index 30d0e49f1..cdaa66288 100644 --- a/scripts/macOS/internal/2a_appbundle.sh +++ b/scripts/macOS/internal/2a_appbundle.sh @@ -35,8 +35,16 @@ do ARGUMENTS="${ARGUMENTS} -executable=${plugin}" done +QT_BASE_DIR="" + +# if QT_DIR is not empty +if [ -n "$QT_DIR" ]; then + # set QT_BASE_DIR to the path of QT_DIR/bin + QT_BASE_DIR="${QT_DIR}/bin/" +fi + # save in message the output of macdeployqt -message=$(${QT_DIR}/bin/macdeployqt $INSTALL_PATH/$APPNAME \ +message=$(${QT_BASE_DIR}macdeployqt $INSTALL_PATH/$APPNAME \ $ARGUMENTS 2>&1) # if message contains "ERROR" then macdeployqt failed