• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Command-line version of PackageMaker v3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: custom backgrounds in only *some* dialogs?
  • Next by Date: Re:Command-line version of PackageMaker v3
  • Previous by thread: Re: custom backgrounds in only *some* dialogs?
  • Next by thread: Re:Command-line version of PackageMaker v3
  • Index(es):
    • Date
    • Thread