Re: PackageMaker, hdiutil & AppleScript
Re: PackageMaker, hdiutil & AppleScript
- Subject: Re: PackageMaker, hdiutil & AppleScript
- From: Chris Ridd <email@hidden>
- Date: Fri, 23 Jul 2004 08:00:05 +0100
On 22/7/04 9:11 pm, goochrules! <email@hidden> wrote:
> 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
Don't use the "-r" flag, because as the cp man page says it doesn't
correctly copy symbolic links. If you pass "-R" instead, cp will do what you
want.
Cheers,
Chris
_______________________________________________
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.