Re: Tutorial for Integrating PackageMaker into a Xcode build target?
Re: Tutorial for Integrating PackageMaker into a Xcode build target?
- Subject: Re: Tutorial for Integrating PackageMaker into a Xcode build target?
- From: "Mac QA" <email@hidden>
- Date: Tue, 18 Mar 2008 20:14:30 -0400
On Mon, Mar 17, 2008 at 1:45 AM, Mac QA <email@hidden> wrote:
> Does anyone know of an example for integrating the command line usage
> of PackageMaker into a Xcode built target for automatically generating
> a package installer each time a project is built?
Hi again,
So I mostly figured this out. My Xcode project consists of multiple
targets, and I want to create a package installer for each, and then a
combined metapackage installer for them all. I have added a new
installer target of that is of type shell script target for each of
the binary targets, and made the binary target a direct dependency of
the installer target. And in the installer shell script target I have
a command of the form:
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
-build -p ./Debug/Installer/target1/target1.pkg -f ./Debug/target1/
-b /tmp -ds -v -r ./Installer/Resources/ -i
./Installer/target1_resources/Info.plist -d
./Installer/target1_resources/Description.plist
The above works to build a package for an individual binary target
result. However, the resulting installer ends up not having the
permissions set appropriately for the payload of the install. Is there
a way to get these permissions set appropriately automatically, w/o
human interaction, so that each time I build I can get an updated
installer?
Also, and this is probably more of an Xcode question than an installer
question, is there a way in the shell script which is part of the
installer shell script target to have it automatically detect whether
the project is being built in Debug mode or Release mode so that I can
use the appropriate paths to the resources for the installer?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden