Last active
March 12, 2023 15:51
-
-
Save eneko/7ee9d6e59be6b4b3635cecb0efda6355 to your computer and use it in GitHub Desktop.
Create DMG image from folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# <filename>.dmg can be a path to a file on an existing folder | |
# <window title> appears when the DMG is open | |
# <file system> APFS, HFS+, etc | |
# UDRW format makes the image read/write (use UDSP for read-only) | |
# | |
hdiutil create <filename>.dmg -volname "<window title>" -fs APFS -format UDRW -srcfolder <path/to/folder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment