From 46ea97ed6fae0b5123827906cd0e1f5c2945d56e Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Fri, 29 Jul 2022 09:01:06 +0200 Subject: [PATCH] Fix: hardcoded src dir --- qt-build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt-build b/qt-build index 1ac4d28..6d32ed3 100755 --- a/qt-build +++ b/qt-build @@ -4,13 +4,15 @@ set -e [[ -z "${PLUGIN_QMAKE_ARGUMENTS}" ]] && QMAKE_ARGUMENTS=$1 || QMAKE_ARGUMENTS="${PLUGIN_QMAKE_ARGUMENTS}" [[ -z "${PLUGIN_ANDROIDDEPLOYQT_ARGUMENTS}" ]] && ANDROIDDEPLOYQT_ARGUMENTS=$2 || ANDROIDDEPLOYQT_ARGUMENTS="${PLUGIN_ANDROIDDEPLOYQT_ARGUMENTS}" +SRC_DIR=$(pwd) + echo "**** prepare ****" rm -rf /build mkdir -p /build cd /build echo "**** qmake ****" -qmake $QMAKE_ARGUMENTS /src +qmake $QMAKE_ARGUMENTS $SRC_DIR echo "**** build native code ****" make -j8 @@ -20,4 +22,4 @@ echo "**** android build ****" androiddeployqt --input $(ls -1 /build/android-*-deployment-settings.json) --output /build/android-build --gradle $ANDROIDDEPLOYQT_ARGUMENTS echo "**** finish up ****" -mv /build/android-build//build/outputs /src/outputs +mv /build/android-build//build/outputs $SRC_DIR/outputs