dtrx-py / dtrx

Do The Right Extraction
GNU General Public License v3.0
224 stars 10 forks source link

Add support for osx .dmg archives #9

Closed noahp closed 3 years ago

noahp commented 3 years ago

They can be extracted with 7z -x, add them to the list.

Add a couple of files produced via:

 # for uncompressed dmg
mkdir test
touch test/{foobar,quux}
genisoimage -V progname -D -R -apple -no-pad -o test.dmg test

 # for compressed, build this tool
git clone git@github.com:fanquake/libdmg-hfsplus.git
cd libdmg-hfsplus
cmake . -B build
make -C build/dmg -j8

 # now run it on the test.dmg
cd -
./libdmg-hfsplus/build/dmg/dmg test.{,compressed.}dmg

Fixes #8.