Command-line version of PackageMaker v3
Command-line version of PackageMaker v3
- Subject: Command-line version of PackageMaker v3
- From: Jim Dodd <email@hidden>
- Date: Fri, 7 Aug 2009 11:40:14 -0700 (PDT)
I have switched from using PackageMaker v2 to PackageMaker v3 and I'm having a few problems.
I can get the installer we want in the GUI version of PackageMaker but we need to automate the making f our installer and I need to use the command-line version of PackageMaker. I would like to use the PMDOC created by the GUI version in the command-line version. But everything I've tried with that causes PackageMaker to crash with an NSInvalidArgumentException. Yet if I run the GUI version from the same PMDOC file, it works. In case it offers any clues, here is the command-line I use for this:
packagemaker --doc OurApp.pmdoc
I realize that doesn't help much because everything is in the PMDOC. But, as I said, if I open that PMDOC in the GUI version, it creates a valid, usable installer package.
The other option is to run the command-line version without the PMDOC input. I can get this to work but it defaults to including a TokenDefinitions.plist file in the Contents/Resources folder that is set up to use CommonAppSearch (whatever that is, it doesn't match any of the options in the GUI version) which ends up "upgrading" the development versions on our machine when the app isn't in it's default location. Is there some way to specify the search method from the command-line? I don't see an option for defining the contents of the TokenDefinitions.plist file.
I am using this command-line:
packagemaker -r "./Distribution/Package_contents" -f PMInfo.plist -o OurApp.pkg -n 3.0 -t OurApp -e ".Distribution/Install_resources" -s ".Distribution/Install_resources" -h system -b -v
where Package_contents has our application and help files, Install_resources has our Welcome, ReadMe, License and pre- and post-install scripts.
Thanks for any help you can offer.
Jim Dodd
Onset Computer Corporation
_______________________________________________
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