PackageMaker, hdiutil & AppleScript
PackageMaker, hdiutil & AppleScript
- Subject: PackageMaker, hdiutil & AppleScript
- From: goochrules! <email@hidden>
- Date: Thu, 22 Jul 2004 14:11:05 -0600
I am attempting to automate the creating of an installer made with
PackageMaker and hdiutil using AppleScript.
By hand i've made 3 PackageMaker templates (.pmsp) and one
meta-template (.pmsm). In the past I've used Disk Utility to create a
dmg from the resulting .pkg and .mpkg files, but find hdiutil easier
to script. The general idea of my script is:
1) copy target files to intermediate directories
2) open each PackageMaker template & create the .[m]pkg file.
3) copy the .[m]pkg files to an itermediate directory
4) use hdiutil to create a .dmg from the intermediate directory
Its in step 3 that I have problems, specifically with copying the
.mpkg file. In Contents/Resources there is a link to "../Archive.bom"
called $package-name.bom. There is no Contents/Archive.bom for this
.mpkg (and poking around, I don't see it in any other .mpkg I have on
my system -- e.g., Xcode-1.2.mpkg -- but these also don't have the
link). When I attempt 'do shell script "cp -r *.pkg *.mpkg ..."' in
AppleScript, I get an error from ScriptEditor:
AppleScript Error
Terminal got an error: cp:
($target-name).mpkg/Contents/Resources/($target-name).bom: No such
file or directory
I suppose I could always just 'touch' this file into existence, but I
wonder what is causing PackageMaker to generate the link in the first
place? Is there another command rather than 'cp' I should be using to
copy the packages?
-- Matthew Peltzer
-- email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.