[PR #573] Add read-only support for Dmg archives #1115

Closed
opened 2026-01-29 22:19:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/573

State: closed
Merged: Yes


As the title suggests, this adds support for reading and extracting Dmg archives.
Only Dmg archives that use the GPT partitioning scheme with a HFS+ or HFSX data partition are supported, but that should cover the large majority of Dmgs out there (any DMGs created on MacOS 8.1 and newer will have this format).

I didn't see any way of implementing this as read-through so only the archive API is available.
Unfortunately I'm not able to provide test data as I don't have access to a Mac to create Dmgs. I have tested extensively using my own data but I cannot share that data publicly. Hopefully someone else will be kind enough to provide those.

**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/573 **State:** closed **Merged:** Yes --- As the title suggests, this adds support for reading and extracting Dmg archives. Only Dmg archives that use the GPT partitioning scheme with a HFS+ or HFSX data partition are supported, but that should cover the large majority of Dmgs out there (any DMGs created on MacOS 8.1 and newer will have this format). I didn't see any way of implementing this as read-through so only the archive API is available. Unfortunately I'm not able to provide test data as I don't have access to a Mac to create Dmgs. I have tested extensively using my own data but I cannot share that data publicly. Hopefully someone else will be kind enough to provide those.
claunia added the pull-request label 2026-01-29 22:19:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1115