Re: [OT] Disk image creation
Re: [OT] Disk image creation
- Subject: Re: [OT] Disk image creation
- From: Alexander von Below <email@hidden>
- Date: Wed, 7 Mar 2007 00:28:38 +0100
I have simple created a template disk image, and I use something like
this as a shell script phase. I copy the template first, so I can
keep it under version control nicely:
# This script will create an internet enabled disk image from a template
# Copy the template to /tmp
cp DMGs/MyProduct_uncompressed.dmg /tmp/MyProduct_uncompressed.dmg
# Open the template
hdiutil attach /tmp/MyProduct_uncompressed.dmg
# Make sure there is no installer in the template
rm -rf "/Volumes/MyProduct/$FULL_PRODUCT_NAME"
# Copy the installer to the template
cp -r "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME" /Volumes/MyProduct
# Unmount the disk image
hdiutil detach /Volumes/MyProduct
# Our new path
DISKPATH="$BUILT_PRODUCTS_DIR/MyProduct.dmg"
# Delete any existing images
rm -f "$DISKPATH"
# Compress the template to the new image
hdiutil convert /tmp/MyProduct_uncompressed.dmg -format UDZO -o
"$DISKPATH"
# Internet enable the
hdiutil internet-enable -yes "$DISKPATH"
#Delete the template
rm -f /tmp/MyProduct*.dmg
Am 07.03.2007 um 00:17 schrieb Laurence Harris:
This is slightly off topic, but since it relates to a development
tool, I'm asking here. What are the best options for creating disk
images for distributing a product via drag and drop installation? I
don't need anything particularly fancy, just a background image and
I want it to preserve my settings to not use metal windows and the
size of window for the folder it contains intact. What's the latest
and greatest for this?
Thanks,
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden