{"id":1490,"date":"2013-12-22T10:51:49","date_gmt":"2013-12-22T18:51:49","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=1490"},"modified":"2013-12-22T10:51:49","modified_gmt":"2013-12-22T18:51:49","slug":"hdiutil","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=1490","title":{"rendered":"hdiutil"},"content":{"rendered":"<p>I recently started selling my software on Gumroad. For the Windows side, we just zipped up the .exe installer and uploaded it. For the Mac side, we first made a disk image where we laid out the files and then compressed them. You can do this with Disk Utility, but it\u2019s a lot easier to do it on the command line.<\/p>\n<p>The first thing you should do is put all the files you want to distribute into a folder. Then get info on the folder to see how much room you will need for your disk image. Round up a little. In the example below, I\u2019m creating an image with 20MB. \u201c ProductName\u201d is the name of the software, e.g. Match Ups!, or Train Time.<\/p>\n<p><pre><code class=\"\u2019smaller\u2019 preserve-code-formatting\">\nhdiutil create -megabytes 20 -fs HFS+ -volname ProductName ProductName.dmg\n<\/code><\/pre><\/p>\n<p>Once you have everything laid out how you want it, compress the image.<\/p>\n<p><pre><code class=\"\u2019smaller\u2019 preserve-code-formatting\">\nhdiutil convert -format UDZO ProductName.dmg -o ImageForDistribution.dmg\n<\/code><\/pre><\/p>\n<p>Where UDZO &#8211; UDIF zlib-compressed image. You can rename ImageForDistribution.dmg to anything you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently started selling my software on Gumroad. For the Windows side, we just zipped up the .exe installer and uploaded it. For the Mac side, we first made a disk image where we laid out the files and then compressed them. You can do this with Disk Utility, but it\u2019s a lot easier to &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=1490\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">hdiutil<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1490","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1490"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1490\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}