Skip to content

Commit

Permalink
CMake: Use create-dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Oct 30, 2024
1 parent b8d721e commit bffb927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Install Dependencies
run: |
brew update
brew install cmake ninja ccache geographiclib SDL2 exiv2 expat zlib shapelib pkgconfig
brew install cmake ninja ccache geographiclib SDL2 exiv2 expat zlib shapelib pkgconfig create-dmg
# pkgconf

- name: Install Gstreamer
Expand Down Expand Up @@ -114,5 +114,5 @@ jobs:
artifact_name: ${{ env.ARTIFACT }}
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: 'package'
source: ''
github_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 1 addition & 4 deletions cmake/CreateMacDMG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,4 @@ message(STATUS "Creating Mac DMG")
file(REMOVE_RECURSE package)
file(MAKE_DIRECTORY package)
file(COPY staging/QGroundControl.app DESTINATION package)
file(REMOVE /tmp/tmp.dmg)
execute_process(COMMAND hdiutil create /tmp/tmp.dmg -ov -volname QGroundControl -fs APFS -srcfolder package)
execute_process(COMMAND hdiutil convert /tmp/tmp.dmg -format UDBZ -o package/QGroundControl.dmg)
file(REMOVE /tmp/tmp.dmg)
execute_process(COMMAND create-dmg --volname "QGroundControl Installer" "QGroundControl.dmg" "package/")

0 comments on commit bffb927

Please sign in to comment.