脚本
贴出脚本 makedmg.h
下载地址 https://github.com/shengpeng3344/Apple-Mac-Notarized-script/blob/master/makedmg.sh
#!/bin/bash
# DMG Creation Script
# Usage: makedmg <imagename> <imagetitle> <contentdir>
#
# Based on makedmg by Jon Cowie
#
# imagename: The output file name of the image, ie foo.dmg
# imagetitle: The title of the DMG File as displayed in OS X
# contentdir: The directory containing the content you want the DMG file to contain
if [ ! $# == 3 ]; then
echo "Usage: $0 <imagename> <imagetitle> <contentdir>"