Created
May 26, 2010 15:00
-
-
Save thilo/414595 to your computer and use it in GitHub Desktop.
a rather minimal dmg script for xcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -ex | |
dir="$TEMP_FILES_DIR/disk" | |
dmg="$BUILT_PRODUCTS_DIR/$PROJECT_NAME.dmg" | |
dmg_options="-imagekey zlib-level=9 -format UDZO" | |
rm -rf "$dir" | |
mkdir "$dir" | |
cp -R "$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app" "$dir" | |
chmod -Rf go-w "$dir" | |
ln -s "/Applications" "$dir/Applications" | |
rm -f "$dmg" | |
hdiutil create -srcfolder "$dir" -volname "$PROJECT_NAME" $dmg_options "$dmg" | |
hdiutil internet-enable -yes "$dmg" | |
rm -rf "$dir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment