From 4fccc435765da3a1602a7fefaf92ecdb931d93af Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 10 Sep 2025 18:28:21 +0100 Subject: [PATCH] Basic macOS dmg generation --- .github/workflows/build.yml | 2 ++ cmake/platforms/macos.cmake | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e232a89f..f761a477 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,6 +125,8 @@ jobs: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release cmake --build build echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV + cpack --config build/CPackConfig.cmake -B build/installer --verbose + mv build/installer/*.dmg build/Release - name: Upload uses: actions/upload-artifact@v4 with: diff --git a/cmake/platforms/macos.cmake b/cmake/platforms/macos.cmake index c8c18d41..a6f4ee4c 100644 --- a/cmake/platforms/macos.cmake +++ b/cmake/platforms/macos.cmake @@ -74,3 +74,5 @@ function(finish_macos_app) endif() endif() endfunction() + +set(CPACK_GENERATOR "DragNDrop")