#!/bin/sh
# PURPOSE
-# package a combination of sfa+sface into a snow leopard dmg install disk
+# package a combination of sfa+sface into a dmg install disk
+# supports leopard and snow leopard
#
# REQUIREMENTS
# sface-skel-snow-leopard<arch>.dmg is the skeleton that has Qt and all the other third-party software
if [ "$skelapp" != "$app" ] ; then
mv "$img_mnt/$skelapp" "$img_mnt/$app"
fi
+ # unmount the skeleton
+ hdiutil unmount "$skel_mnt"
+
#
resource_path=$app/Contents/Resources
bin_path=$app/Contents/MacOS
hdiutil convert -quiet -format UDZO -imagekey zlib-level=9 -o $img_dmg $img_raw_dmg
# clean up the raw image
rm -f $img_raw_dmg
- # unmount the skeleton
- hdiutil unmount "$skel_mnt"
echo "=================================================="
echo "Install image ready in $img_dmg"