osx-dmg.sh revision eaf5e6d2c9ada65555be7060df917049fb764241
6864N/A# previously created .DS_Store file (inkscape.ds_store),
6864N/A# Modify the 'dmg_background.svg' file and generate a new
6864N/A# 'dmg_background.png' file.
6876N/A# Update the AppleScript file 'dmg_set_style.scpt'.
6864N/A# 'dmg_set_style.scpt' AppleScript file, and then prompt the
6864N/A# a new 'inkscape.ds_store' file to work around a bug in Finder
# and AppleScript. The updated 'inkscape.ds_store' will need
set_ds_store=false
set_ds_store=true
# Copy Inkscape.app folder.
/usr/bin/hdiutil create -srcfolder "TMPDIR" -volname "$VOLNAME" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "$RWNAME"
DEV_NAME=`/usr/bin/hdiutil attach -readwrite -noverify $AUTOOPENOPT "$RWNAME" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
read -e DUMB
DEV_NAME=`/usr/bin/hdiutil attach -readwrite -noverify $AUTOOPENOPT "$RWNAME" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
echo "New inkscape.ds_store file written."