Skip to content

A shell script to build fancy Apple Disk Images (DMGs) for distributing Mac OS X applications..

License

Notifications You must be signed in to change notification settings

umich-hpc/create-dmg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-dmg

A shell script to build fancy Apple Disk Images (DMGs).

This is a slightly modified version of Andrey Tarantsov's yoursway-create-dmg script.

USAGE

create-dmg [options...] [output_name.dmg] [source_folder]  

All contents of source_folder will be copied into the disk image.

Options

  • --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
  • --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
  • --eula [eula file]: attach a license file to the dmg
  • --no-internet-enable: disable automatic mount&copy
  • --version: show tool version number
  • -h, --help: display the help

Example

#!/bin/sh  
test -f Application-Installer.dmg && rm Application-Installer.dmg  
create-dmg \  
  --volname "Application Installer" \  
  --volicon "application_icon.icns" \  
  --background "installer_background.png" \  
  --window-pos 200 120 \  
  --window-size 800 400 \  
  --icon-size 100 \  
  --icon Application.app 200 190 \  
  --hide-extension Application.app \  
  --app-drop-link 600 185 \  
  Application-Installer.dmg \  
  source_folder/  

ADDITIONAL RESOURCES

CHANGES

The following changes have been made from the original version

LICENSE

create-dmg is Copyright (C) 2008, 2011 - 2013 Andrey Tarantsov, with modifications Copyright (C) 2014 Regents of The University of Michigan.

create-dmg is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

create-dmg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with flux-utils. If not, see http://www.gnu.org/licenses/

About

A shell script to build fancy Apple Disk Images (DMGs) for distributing Mac OS X applications..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 48.9%
  • Python 35.9%
  • AppleScript 15.2%