From 1a51dbf2977881e561cb0007835009b30913acd4 Mon Sep 17 00:00:00 2001 From: "http://petefoth.myopenid.com/" Date: Wed, 30 Nov 2011 05:16:19 -0500 Subject: [PATCH] --- building_client_software_for_mac_os.mdwn | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/building_client_software_for_mac_os.mdwn b/building_client_software_for_mac_os.mdwn index 9e4b0c7..c34036e 100644 --- a/building_client_software_for_mac_os.mdwn +++ b/building_client_software_for_mac_os.mdwn @@ -129,4 +129,32 @@ Build the package --domain system --verbose --no-relocate -l "/" --target 10.5 \ --id ja.net.moonshotClientSoftware --out Moonshot\ Client\ Software.pkg +Instructions in DevWiki at http://www.project-moonshot.org/devwiki//building_client_software_for_mac_os + +###Making the Disk Image +Create and mount the image - 2MB will be enough for now + + $ hdiutil create -size 2m -fs HFS+ -volname "Moonshot Client Software" temp.dmg + $ hdiutil attach temp.dmg + +Copy the package and the READMEs + $ cp Moonshot\ Client\ Software.pkg /Volumes/Moonshot\ Client\ Software/ + $ cp resources/* /Volumes/Moonshot\ Client\ Software/ + +Get rid of hidden files and folders that we don't need + + $ sudo rm -rf /Volumes/Moonshot\ Client\ Software/.fseventsd/ + $ sudo rm -rf /Volumes/Moonshot\ Client\ Software/.Trashes/ + $ sudo find /Volumes/Moonshot\ Client\ Software -name '.*' -type f -delete + +Unmount the image + + $ hdiutil detach /Volumes/Moonshot\ Client\ Software + +Convert the disk image to read-only + + $ hdiutil convert temp.dmg -format UDZO -o moonshotclientsoftware.dmg + $ rm temp.dmg + +The compressed disk image containing the installer package and the READMEs is now in file moonshotclientsoftware.dmg -- 2.1.4