A shell script to build fancy DMGs.
Create Dmg File On Linux Mac
7-Zip and DMG Extractor are the best options to open DMG file on Windows because they are compatible with the most DMG variations. For Linux a built-in 'cdrecord' command can be issued to burn DMG files to CD's or DVD's. Aside from the Finder application, you can open DMG files through Apple Disk Utility, Roxio Toast, and Dare to be Creative. Nov 16, 2018 Open a Finder window and double-click on the DMG file to mount it. You should be able to see it on the left panel in Disk Utility. Right-click the DMG file in the left panel and select 'Convert'. In the new window that appears, select 'DVD/CD Master' as your output and click on Save.
Status and contribution policy
This project is maintained thanks to the contributors who send pull requests, and now (Sep 2018) with the help of @aonez.
We will merge any pull request that adds something useful and does not break existing things, and will often grant commit access to the repository.
If you're an active user and want to be a maintainer, or just want to chat, please ping us at gitter.im/create-dmg/Lobby.
Installation
You can install this script using Homebrew:
You can download the latest release
You can also clone the entire repository:
Usage
Install Dmg File On Linux
All contents of source_folder will be copied into the disk image.
Options:
Dmg File Pc
- --volname <name>: set volume name (displayed in the Finder sidebar and window title)
- --volicon <icon.icns>: set volume icon
- --background <pic.png>: set folder background image (provide png, gif, jpg)
- --window-pos <x> <y>: set position the folder window
- --window-size <width> <height>: set size of the folder window
- --text-size <text_size>: set window text size (10-16)
- --icon-size <icon_size>: set window icons size (up to 128)
- --icon <file_name> <x> <y>: set position of the file's icon
- --hide-extension <file_name>: hide the extension of file
- --custom-icon <file_name|custom_icon|sample_file> <x> <y>: set position and custom icon
- --app-drop-link <x> <y>: make a drop link to Applications, at location x, y
- --ql-drop-link <x> <y>: make a drop link to /Library/QuickLook, at location x, y
- --eula <eula_file>: attach a license file to the dmg
- --rez <rez_path>: specify custom path to Rez tool used to include license file
- --no-internet-enable: disable automatic mount©
- --format: specify the final image format (default is UDZO)
- --add-file <target_name> <file|folder> <x> <y>: add additional file or folder (can be used multiple times)
- --disk-image-size <x>: set the disk image size manually to x MB
- --hdiutil-verbose: execute hdiutil in verbose mode
- --hdiutil-quiet: execute hdiutil in quiet mode
- --sandbox-safe: execute hdiutil with sandbox compatibility and do not bless
- --version: show tool version number
- -h, --help: display the help
Example
Create Dmg File On Windows
Alternatives
- see the StackOverflow question