Compile finder extensions for arm and x86
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Fri, 12 Nov 2021 12:03:35 +0000 (13:03 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Tue, 16 Nov 2021 08:54:48 +0000 (08:54 +0000)
Fix: https://github.com/nextcloud/desktop/issues/3967

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
shell_integration/MacOSX/CMakeLists.txt

index b11efaf1f194400d067917978fe4b478a82a4f4a..0f3fd0917b221b15593aab74b0d8ade0ec9a6ce6 100644 (file)
@@ -6,7 +6,8 @@ set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/${APPLICATION_ICON_NAME}.icns
 # Pass the info through the xcodebuild command line and make sure that the project uses
 # those user-defined settings to build the plist.
 add_custom_target( mac_overlayplugin ALL
-    xcodebuild -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
+  xcodebuild ARCHS=${CMAKE_OSX_ARCHITECTURES} ONLY_ACTIVE_ARCH=NO
+        -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
         -target FinderSyncExt -configuration Release "SYMROOT=${CMAKE_CURRENT_BINARY_DIR}"
         "OC_OEM_SHARE_ICNS=${OC_OEM_SHARE_ICNS}"
         "OC_APPLICATION_NAME=${APPLICATION_NAME}"