Creating a disk image of a folder in a launch daemon script
Creating a disk image of a folder in a launch daemon script
- Subject: Creating a disk image of a folder in a launch daemon script
- From: Jim O'Connor <email@hidden>
- Date: Wed, 10 Dec 2008 22:48:08 -0600
I have a build script which runs from LaunchDaemon with a user name
set to do my automated builds without requiring a user to be logged in.
My script uses hdiutil to create a dmg of tools to store inside the
product, but I'm running into all sorts of issues with running from
LaunchD -- hanging hdiutil processes, diskimages processes,
hdiejectd, and an authorizationd instance in some cases.
mkdir "${SRCROOT}/Utils"
cp -R "${SRCROOT}/../../tools" "${SRCROOT}/Utils"
cp -R "${SRCROOT}/../../scripts" "${SRCROOT}/Utils"
hdiutil create -srcfolder "${SRCROOT}/Utils" -ov "$
{BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources/Utils.dmg"
I've tried the following options:
-skipunreadable
-anyowners
Does anyone have a clue as to what I need to do to get around this?
Thanks,
Jim
_______________________________________________
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