GithubHelp home page GithubHelp logo

kevinnz / create-dmg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from create-dmg/create-dmg

0.0 2.0 0.0 475 KB

A shell script to build fancy DMGs

License: MIT License

Ruby 3.16% Shell 46.40% Python 38.23% AppleScript 12.22%

create-dmg's Introduction

create-dmg

A shell script to build fancy DMGs.

Status and contribution policy

This project is maintained thanks to the contributors who send pull requests. The original author has no use for the project, so his only role is reviewing and merging pull requests.

I will merge any pull request that adds something useful and does not break existing things.

Starting in January 2015, everyone who gets a pull request merged gets commit access to the repository.

Installation

By being a shell script, yoursway-create-dmg installation is very simple. Simply download and run.

git clone https://github.com/andreyvit/yoursway-create-dmg.git
cd yoursway-create-dmg
./create-dmg [options]

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
  • --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
  • --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/

Alternatives

create-dmg's People

Contributors

andreyvit avatar byronclark avatar csparker247 avatar dirkhh avatar farmckon avatar geary avatar jendave avatar jpitblado avatar kaloyan-raev avatar kodawah avatar mente avatar mikemccracken avatar miks avatar rbdavison avatar u-foka avatar uznick avatar wesen avatar wintersoft avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.