X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=macos%2Fbuild-dmg.sh;h=13e7675fbd14aeab4b03fd2bef3496a609b0c8db;hp=836e0624c5d0dd493b329deccd1262fdf7e11774;hb=a495ee2a01b0fd02f85993a07aa759d84fb3f678;hpb=69d71c0f183588cfce274a6853de0819a92412f9 diff --git a/macos/build-dmg.sh b/macos/build-dmg.sh index 836e062..13e7675 100755 --- a/macos/build-dmg.sh +++ b/macos/build-dmg.sh @@ -1,10 +1,8 @@ #!/bin/sh # PURPOSE -# package a combination of sfa+sface into a snow leopard dmg install disk -# -# NOTES -# we leverage the first similar packaging initially made by Baris Metin +# package a combination of sfa+sface into a dmg install disk +# supports leopard and snow leopard # # REQUIREMENTS # sface-skel-snow-leopard.dmg is the skeleton that has Qt and all the other third-party software @@ -15,6 +13,22 @@ # in order to retrieve the corresponding code and to label the resulting package properly # alternatively, a build-dir and tags file can be used instead +# NOTES +# we initially leveraged the first similar packaging initially made by Baris Metin +# as of sface-0.1-9 we have bootstrapped our own skeleton images, +# i.e. you can use vn as a skeleton for vn+1 +# about that, the way the background image gets (or not) found +# on the final system is as follows +# before compressing the image, you should open the image through the finder +# and tweak it, as described in http://el-tramo.be/guides/fancy-dmg +# that's the raison d'ĂȘtre for the -i option +# basically: open two finder windows, one on the .backgrounf dir (use cmd-shift G) +# and one on the image itself; then using Finder->view->show view options +# drag the background image as appropriate +# the important point being that the filename for the background must +# exist - and so be the same - on the target system. +# that's why the image 'volname' is constant across versions + # the place to search for the skeleton SKEL_REPO=http://mirror.onelab.eu/third-party @@ -133,6 +147,9 @@ Also make sure to trash the current one before retrying" 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 @@ -169,17 +186,12 @@ Also make sure to trash the current one before retrying" read _ fi - # this apparently requires xcode -# /Developer/Tools/SetFile -a V "$img_mnt"/$background_path - hdiutil detach "$img_mnt" rm -f $img_dmg echo "Compressing..." 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"