fix deploy x86 macos

This commit is contained in:
Alessandro Muntoni 2024-02-02 10:40:02 +01:00
parent 2e9ef54de9
commit b79e0d4c2c

View File

@ -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