create-dmg

A shell script to build fancy DMGs
授权协议 MIT License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 毕衡
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

create-dmg

A shell script to build fancy DMGs.

Status and contribution policy

Create-dmg is maintained thanks to the contributors who send pull requests.As of May 2020, Andrew Janke is the primary maintainer, and (since September 2018) @aonez has helped with the maintenance.The project home page is https://github.com/create-dmg/create-dmg.

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

If you're an active user and want to be a maintainer, or just want to chat, please ping us on Gitter at gitter.im/create-dmg/Lobby, or email Andrew directly.

Create-dmg was originally created by Andrey Tarantsov.

Installation

  • You can install this script using Homebrew:

    brew install create-dmg
  • You can download the latest release and install it from there:

    make install
  • You can also clone the entire repository and run it locally from there:

    git clone https://github.com/create-dmg/create-dmg.git

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 -tom 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&copy
  • --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, do not bless and do not execute the cosmetic AppleScript
  • --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/"

See the examples folder in the source tree for more examples.

Requirements

Nothing except a standard installation of macOS/OS X is required.

We think this works in OS X 10.6 Snow Leopard and later.

We'd like to keep it working in as many versions as possible, but unfortunately, we just don't have test boxes running old versions of OS X adequate to make this happen. Development and testing mostly happens in the last 3-5 years' worth of macOS releases; as of 2020, this means macOS 10.12 and later.

But if you find a bug in an older version, go ahead and report it! We'll try to work with you to get it fixed.

If you're running OS X 10.5 or later, you're SOL. That's just too hard to deal with in 2020. ;)

Alternatives

  • http://blog.csdn.net/wudj810818/article/details/70557284 1、环境 Mac OS Python3.5 PyQt5 2、所需工具 Pyinstaller – 用于将python程序生成可执行的app DMG Canvas – 用于将app生成dmg 3、环境准备及工具安装 3.1 安装Python3.5 3.1.1 安装 Python3.5官网

  • 使用create-react-app 快速创建一个 Electron 桌面应用 Electron简介 React + Electron 搭建一个桌面应用 在 Electron 中, 把 package.json 中设定的 main 脚本的所在进程称为 主进程。 快速体验 # github上有一个 electron-quick-start 仓库克隆下来 git clone https://githu

  • 解决办法: 1. 换个浏览器重新下载 参考文档 http://kb.tableau.com/articles/issue/error-image-not-recognized-installing-tableau-desktop-on-a-mac?lang=zh-cn

  • hdiutil create -srcfolder /users/test1/ -volname test1 /users/test/test1.dmg   转载于:https://www.cnblogs.com/cuthead/p/dmg.html

 相关资料
  • 描述 (Description) 它在集合中创建模型的新实例。 语法 (Syntax) collection.create(attributes,options) 参数 (Parameters) attributes - 它们表示已定义模型的属性。 options - 它使用id,name等参数来创建集合实例。 例子 (Example) <!DOCTYPE html> <html> <he

  • create 通过一个构建函数完整的创建一个 Observable create 操作符将创建一个 Observable,你需要提供一个构建函数,在构建函数里面描述事件(next,error,completed)的产生过程。 通常情况下一个有限的序列,只会调用一次观察者的 onCompleted 或者 onError 方法。并且在调用它们后,不会再去调用观察者的其他方法。 演示 创建一个 [0,

  • create 函数签名: create(subscribe: function) 使用给定的订阅函数来创建 observable 。 示例 示例 1: 发出多个值的 observable ( StackBlitz | jsBin | jsFiddle ) // RxJS v6+ import { Observable } from 'rxjs'; /* 创建在订阅函数中发出 'Hello' 和

  • Creates new projects from any create-* starter kits. yarn create <starter-kit-package> [<args>] This command is a shorthand that helps you do two things at once: Install create-<starter-kit-package> g

  • 要使用iBATIS执行任何创建,读取,更新和删除(CRUD)操作,您需要创建与该表对应的普通旧Java对象(PO​​JO)类。 此类描述将“建模”数据库表行的对象。 POJO类将具有执行所需操作所需的所有方法的实现。 我们假设我们在MySQL中有以下EMPLOYEE表 - CREATE TABLE EMPLOYEE ( id INT NOT NULL auto_increment, f

  • 以下示例将演示如何在Spring JDBC的帮助下使用Insert查询创建查询。 我们将在学生表中插入一些记录。 语法 (Syntax) String insertQuery = "insert into Student (name, age) values (?, ?)"; jdbcTemplateObject.update( insertQuery, name, age); Where, i

  • 以下示例将演示如何在Spring JDBC的帮助下使用Insert查询创建查询。 我们将在学生表中插入一些记录。 语法 (Syntax) String insertQuery = "insert into Student (name, age) values (?, ?)"; jdbcTemplateObject.update( insertQuery, name, age); Where, i

  • 创建集群,异步操作,需通过describeCluster来查询集群状态,判定集群创建成功还是失败。整个操作流程可能会耗时5分钟甚至更长时间,需要通过合理的定期查询来获取状态。 状态:C_PROCESSING服务器已经受理,集群正在处理中;C_RUNNING为集群开始正常运行,已可用,说明创建成功。C_FAILED失败。 参数:CreateClusterRequest name:String。集群名