From b7d7ac4623b5a4a4a4747a9cbcb822e651d07740 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 16 Oct 2019 19:43:07 +0100 Subject: [PATCH] Revert "Create dmg with genisoimage & libdmg-hfsplus" This reverts commit 08e1db494d82a466f4c8959247157c220abd0ab0. --- dist/create-dmg.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/dist/create-dmg.sh b/dist/create-dmg.sh index 45746c0ad..ce05225b3 100755 --- a/dist/create-dmg.sh +++ b/dist/create-dmg.sh @@ -38,8 +38,21 @@ cp ../dist/dmg_background.png "$TMP/.background/background.png" cp ../dist/DS_Store.in "$TMP/.DS_Store" chmod go-rwx "$TMP/.DS_Store" ln -s /Applications "$TMP/Applications" -# copies the prepared bundle into the dir that will become the DMG +# copies the prepared bundle into the dir that will become the DMG cp -R "$IN" "$TMP" -genisoimage -D -V "Clementine" -no-pad -r -apple -o $NAME.iso $TMP -dmg dmg $NAME.iso $OUT +# create +hdiutil makehybrid -hfs -hfs-volume-name Clementine -hfs-openfolder "$TMP" "$TMP" -o tmp.dmg +hdiutil convert -format UDZO -imagekey zlib-level=9 tmp.dmg -o "$OUT" + +# cleanup +rm tmp.dmg + +#hdiutil create -srcfolder "$TMP" \ +# -format UDZO -imagekey zlib-level=9 \ +# -scrub \ +# "$OUT" \ +# || die "Error creating DMG :(" + +# done ! +echo 'DMG size:' `du -hs "$OUT" | awk '{print $1}'`