From 1179ec81a284a6c2a19829274ad6401f970690b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n=20Rodri=CC=81guez?= Date: Sat, 22 Jul 2023 20:25:09 +0200 Subject: [PATCH] Fix compileOSX.sh --- compileOSX.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/compileOSX.sh b/compileOSX.sh index e74680f5..7182edbf 100755 --- a/compileOSX.sh +++ b/compileOSX.sh @@ -18,8 +18,10 @@ if [ "$6" == "clean" ]; then fi if [ "$ARCH" == "x86_64" ]; then + ARCHS="x86_64" ARCH_NAME="Intel" -elif [ "$ARCH" == "x86_64" ]; then +else + ARCHS="x86_64 arm64" ARCH_NAME="U" fi @@ -29,19 +31,19 @@ hash qmake 2>/dev/null || { echo >&2 "Qmake command not available. Please add th echo "Compiling YACReader" cd YACReader -qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" +qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="$ARCHS" make cd .. echo "Compiling YACReaderLibrary" cd YACReaderLibrary -qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" +qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="$ARCHS" make cd .. echo "Compiling YACReaderLibraryServer" cd YACReaderLibraryServer -qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" +qmake DEFINES+="BUILD_NUMBER=\\\\\\\"${BUILD_NUMBER}\\\\\\\"" QMAKE_APPLE_DEVICE_ARCHS="$ARCHS" make cd ..