21 lines
1.1 KiB
CMake
21 lines
1.1 KiB
CMake
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2025 ai-ad4 and the FreePDFEditor contributors
|
|
# macOS packaging: .dmg (universal2, notarized+stapled) and .pkg for MDM (§12.3).
|
|
# CPack produces a DragNDrop .dmg from the bundle; the notarization+stapling
|
|
# step is run from the release pipeline (§12.5) via packaging/macos/notarize.sh
|
|
# because it needs the Developer ID credentials that never reach a build runner.
|
|
|
|
set(CPACK_GENERATOR "DragNDrop;productbuild")
|
|
set(CPACK_DMG_VOLUME_NAME "FreePDFEditor")
|
|
set(CPACK_DMG_FORMAT "UDBZ")
|
|
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/packaging/macos/dmg-background.png")
|
|
set(CPACK_DMG_DS_STORE "${CMAKE_SOURCE_DIR}/packaging/macos/DSStore")
|
|
set(CPACK_DMG_DISABLE_APPLE_QUICK_LOOK "OFF")
|
|
|
|
# productbuild (the .pkg for MDM/Jamf)
|
|
set(CPACK_PRODUCTBUILD_IDENTIFIER "org.freepdfeditor.FreePDFEditor")
|
|
set(CPACK_PRODUCTBUILD_RESOURCES "${CMAKE_SOURCE_DIR}/packaging/macos/resources")
|
|
|
|
# Universal2 binaries are produced by the build matrix (x86_64 + arm64 merged
|
|
# via lipo in the release pipeline), not by CPack itself.
|
|
set(CPACK_ARCHIVE_FILE_NAME "freepdfeditor-${PROJECT_VERSION}-macos-universal") |