site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=83K8gu5rZwgCoRSaAD//wkiM6uWq9Hd4Alofzw/JDOc=; b=Chh6QSQJy0x/fpwW3oyey1fErqQCF71kQdxjZ21fb3N+50UTCcgixV58tVQgRd0HnRSY5hCW2iRa7aPQaojlqoDa8dGqJ+zhc/NyxyggIgbN5rTQ3Yb+DZOGA4YKhTqeuNaYodVfnxMJ5qxvVFGIkELazU8Pi6SsIkdHFF17sl4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uo1r4hytL0ZOgs5G37r4c76sIBGZCGy0Zw1S/N8Ac1bv4m+13B0de54LhBmWC/FFXt0Jad0Ztosn0bwOR2D6ckWcTSruyALJ64ITxTOyNIkMQDxwz4N1pkcUD4agJhIBZGm1BbIAq8Lx6r8bn4OwGX+weXYbligKltD+b2VQWIs= On Mon, Mar 17, 2008 at 1:45 AM, Mac QA <macqaguy@gmail.com> 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com