From b79e0d4c2c34d121f345cb0c1a3ed7bf8986a68b Mon Sep 17 00:00:00 2001 From: Alessandro Muntoni Date: Fri, 2 Feb 2024 10:40:02 +0100 Subject: [PATCH] fix deploy x86 macos --- scripts/macOS/internal/2a_appbundle.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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