diff --git a/mac/autorelease_mac.sh b/mac/autorelease_mac.sh index 74bbb70603..46340593c6 100755 --- a/mac/autorelease_mac.sh +++ b/mac/autorelease_mac.sh @@ -2,20 +2,26 @@ # Sets up the environment for autobuild on macOS -# please run this script with the first parameter being the root of the repo +# Please run this script with the first parameter being the root of the repo if [ -z "${1}" ]; then echo "Please give the path to the repository root as second parameter to this script!" exit 1 fi -cd ${1} +cd "${1}" echo "Install dependencies..." -brew install qt5 -brew link qt5 --force +#brew install qt5 +#brew link qt5 --force +python3 -m pip install aqtinstall + +python3 -m aqt install --outputdir /usr/local/opt/qt 5.12.9 mac desktop +# add the qt binaries to the path + +export PATH=/usr/local/opt/qt/5.12.9/clang_64/bin:"${PATH}" echo "Run deploy script..." -sh ${1}/mac/deploy_mac.sh +sh "${1}"/mac/deploy_mac.sh # Move the created installer to deploy -cp ${1}/deploy/Jamulus-*installer-mac.dmg ${1}/deploy/Jamulus-installer-mac.dmg +cp "${1}"/deploy/Jamulus-*installer-mac.dmg "${1}"/deploy/Jamulus-installer-mac.dmg