diff options
author | Brad King <brad.king@kitware.com> | 2022-04-20 15:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-20 17:27:39 (GMT) |
commit | 2167fce99befa565c3a70d09a2be65a865a2f23a (patch) | |
tree | 88b0fac91611aa1dc76c039e5f8af4cb3f6e9e88 /Utilities/Release | |
parent | 722e4d4619d32fa3da1a3de7fb7b37a87f5a6a8c (diff) | |
download | CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.zip CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.tar.gz CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.tar.bz2 |
Utilities/Release: Drop SLA from CMake macOS DMG package
macOS 12 deprecates the tools needed to attach a SLA to a `.dmg`.
CMake 3.23 added `CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE` to
control whether `CPACK_RESOURCE_FILE_LICENSE` is used as the SLA.
CMake 3.24 will add policy CMP0133 to disable the SLA by default.
Explicitly turn off the SLA for CMake's official macOS binaries.
This will allow them to build on future macOS versions that have
no SLA tooling available.
Issue: #22978
Diffstat (limited to 'Utilities/Release')
-rwxr-xr-x | Utilities/Release/macos/sign-notarize.bash | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Utilities/Release/macos/sign-notarize.bash b/Utilities/Release/macos/sign-notarize.bash index 8283c90..fe27afe 100755 --- a/Utilities/Release/macos/sign-notarize.bash +++ b/Utilities/Release/macos/sign-notarize.bash @@ -77,12 +77,6 @@ echo '<?xml version="1.0" encoding="UTF-8"?> </dict> </plist>' > "$entitlements_xml" -# Extract SLA -readonly sla_xml="$tmpdir/sla.xml" -hdiutil udifderez -xml "$dmg" > "$sla_xml" -plutil -remove 'blkx' "$sla_xml" -plutil -remove 'plst' "$sla_xml" - # Convert from read-only original image to read-write. readonly udrw_dmg="$tmpdir/udrw.dmg" hdiutil convert "$dmg" -format UDRW -o "${udrw_dmg}" @@ -112,6 +106,3 @@ hdiutil detach "$vol_path" # Convert back to read-only, compressed image. hdiutil convert "${udrw_dmg}" -format UDZO -imagekey zlib-level=9 -ov -o "$dmg" - -# Re-insert SLA. -hdiutil udifrez -xml "${sla_xml}" 'FIXME_WHY_IS_THIS_ARGUMENT_NEEDED' "$dmg" |