osx-dmg.sh revision 36994ed8917288bc5710d2ba3313312e3005fec6
2N/A# osx-dmg [-s] -p /path/to/Inkscape.app
2N/A# previously created .DS_Store file (inkscape.ds_store),
2N/A# Modify the 'dmg_background.svg' file and generate a new
2N/A# 'dmg_background.png' file.
2N/A# Update the AppleScript file 'dmg_set_style.scpt'.
2N/A# 'dmg_set_style.scpt' AppleScript file, and then prompt the
2N/A# a new 'inkscape.ds_store' file to work around a bug in Finder
2N/A# and AppleScript. The updated 'inkscape.ds_store' will need
2N/Aset_ds_store=false
2N/A $0 [-s] -p /path/to/Inkscape.app
set the path to the Inkscape.app that should be copie
-h|--help)
set_ds_store=true ;;
-p|--package)
if [ ! -e "$package" ]; then
echo "Cannot find package: $package"
# copy Inkscape.app
/usr/bin/hdiutil create -srcfolder "$tmp_dir" -volname "$volume_name" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "$rw_name"
DEV_NAME=`/usr/bin/hdiutil attach -readwrite -noverify $auto_open_opt "$rw_name" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
# In case the apperance has to be modified, mount the image and apply the base settings to it via Applescript
read -e DUMB
DEV_NAME=`/usr/bin/hdiutil attach -readwrite -noverify $auto_open_opt "$rw_name" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
echo "New $ds_store_file file written. Re-run $0 without the -s option to use it"
if [ -e "$img_name" ]; then
echo "$img_name already exists."