From 9582cd35b392958fe02a0cd9b0ce8a811f63bcb1 Mon Sep 17 00:00:00 2001 From: Leon Lynch Date: Sat, 19 Oct 2024 21:06:30 +0200 Subject: [PATCH] Fix packaging for MacOS release builds Let CPack use sudo when invoking hdiutil to ensure that it succeeds. This mitigates an issue that causes hdiutil to fail very often for MacOS versions beyond 12. The cause of the issue is unknown. See https://github.com/actions/runner-images/issues/7522#issuecomment-1564467252 --- .github/workflows/macos-build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/macos-build.yaml b/.github/workflows/macos-build.yaml index 14d35e0..90f9226 100644 --- a/.github/workflows/macos-build.yaml +++ b/.github/workflows/macos-build.yaml @@ -149,6 +149,7 @@ jobs: -DQT_DIR=${{ env.QT_DIR }} \ -DBUILD_DUKPT_UI=YES \ -DBUILD_MACOSX_BUNDLE=YES \ + -DCPACK_COMMAND_HDIUTIL="/usr/bin/sudo /usr/bin/hdiutil" \ -DSIGN_MACOSX_BUNDLE=openemv.org - name: Build