From 4950e81d51a1792c80763ab5cde7dd29a0e0e703 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Wed, 4 Nov 2015 09:54:50 -0800 Subject: [PATCH 1/2] Add snippet for creating a DMG file from a folder's contents --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c9b1658..942ebe9 100644 --- a/README.md +++ b/README.md @@ -298,6 +298,11 @@ sudo fs_usage ### Disk Images +#### Create a Disk Image From the Contents of a Folder +```bash +hdiutil create -volname "Name Of Volume" -srcfolder /path/to/Folder -ov MyDmgName.dmg +``` + #### Disable Disk Image Verification ```bash defaults write com.apple.frameworks.diskimages skip-verify -bool true && \ From 3eb01c1673125c9f1e9562f8fdedd728d8e539ed Mon Sep 17 00:00:00 2001 From: Joe Block Date: Thu, 5 Nov 2015 11:26:08 -0800 Subject: [PATCH 2/2] Address PR Feedback --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 942ebe9..6f2503e 100644 --- a/README.md +++ b/README.md @@ -298,9 +298,9 @@ sudo fs_usage ### Disk Images -#### Create a Disk Image From the Contents of a Folder +#### Create Disk Image From Folder Contents ```bash -hdiutil create -volname "Name Of Volume" -srcfolder /path/to/Folder -ov MyDmgName.dmg +hdiutil create -volname "Volume Name" -srcfolder /path/to/Folder -ov diskimage.dmg ``` #### Disable Disk Image Verification