Repository navigation
Use latest compression for macOS installer packages - #10751
Merged
akoeplinger merged 1 commit intoNov 6, 2026
Merged
Conversation
Pass existing minimum macOS versions to pkgbuild and preserve pbzx payloads through signing unpack/repack operations. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the macOS installer compression changes.
No open issues 🎉
What changed in this PR
This PR enables newer macOS installer compression across the SDK, runtime, and Arcade packaging tools, using existing minimum OS versions without raising requirements.
Changes:
- Enable
pkgbuild --compression latestusing the SDK and runtime minimum macOS versions, while retaining default behavior for Arcade callers that leave the property unset. - Support gzip and pbzx extraction and preserve minimum-version metadata and latest compression when repacking for signing.
- Add regression coverage for legacy gzip, pbzx, and nested installer/app-bundle round trips.
| File | Description |
|---|---|
src/sdk/src/Layout/redist/targets/GeneratePKG.targets |
Reuses the SDK minimum macOS version for distribution metadata and compression. |
src/runtime/src/installer/pkg/sfx/Directory.Build.props |
Passes the runtime minimum macOS version to installer targets. |
src/arcade/src/Microsoft.DotNet.MacOsPkg/Core/Package.cs |
Fully expands compressed payloads and preserves minimum-version metadata when repacking. |
src/arcade/src/Microsoft.DotNet.MacOsPkg.Tests/UnpackPackTests.cs |
Tests compression, metadata, and content preservation through package round trips. |
src/arcade/src/Microsoft.DotNet.Build.Tasks.Installers/README.md |
Documents the optional minimum-version property and compression behavior. |
src/arcade/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.build.targets |
Adds compression flags when a minimum macOS version is supplied. |
Review effort: Balanced
premun
approved these changes
Nov 6, 2026
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable
pkgbuild --compression latestusing the existing minimum supported macOS versions, reducing installer payload sizes without raising OS requirements.MacOSMinimumVersionproperty to Arcade's installer targets; retain existing compression when it is unset.macOSVersionMinand reuse the SDK installer's existing minimum version.pkgutil --expand-full, and preserve minimum-version metadata and latest compression when repacking packages for signing.Validation
Microsoft.DotNet.MacOsPkgtests passed locally.