• 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
Re: Packagemaker command line options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packagemaker command line options


  • Subject: Re: Packagemaker command line options
  • From: Bill Coderre <email@hidden>
  • Date: Fri, 22 Jun 2012 22:09:12 -0700

Please use pkgutil and not xar.


On Jun 22, 2012, at 6:10 PM, Vikram Singh wrote:

Apple provides a command line utility 'pkgutil' to work with packages. So, instead of using xar command, you can use pkgutil command to expand and flatten the packages.

pkgutil --expand yourPkg.pkg Temp.pkg
Modify your distribution file.
pkgutil --flatten Temp.pkg  yourPkg.pkg

Even I have been using the same approach to overcome this bug in packagemaker. Though it is not a cleaner way to do this, but it works and so far I didn't find any other solution.

Thanks,
Vikram

On Jun 23, 2012 1:53 AM, "Mitchell Laurren-Ring" <email@hidden> wrote:
Since nobody has responded, I've begun implementing a workaround:

1) Create pkg using packagemaker (target=10.5)
2) Expand the archive using "xar -xf"
3) Modify the Distribution xml file to include the 3 additional lines
4) Re-archive using "xar -cf"

Because our build process is automated, I'm learning about XSLT and xsltproc to modify the Distribution file.

Any pointers or criticisms of the workaround are welcome!

/Mick




On Jun 20, 2012, at 6:40 PM, Mitchell Laurren-Ring <email@hidden> wrote:

Hey all:

I recently changed our build script to use "--target 10.5" with the packagemaker command. We were previously using "--target 10.3" but switched to the flat package so that we could sign it. This has caused an unforeseen and apparently undocumented problem with our use of  "--resources" in that none of our resources (license, welcome, background) are picked up by the installer at run-time.

Extensive googling tells me that this is a known issue and to fix it I need to modify the Distribution file inside the package. The only two solutions I've seen involve creating the package, unarchiving, modifying the Distribution file and the re-archiving. Obviously, this is sub-optimal.

I note that there is a "--info" option for packagemaker but I can't find any info about the format of the file that goes with it. From what I've seen elsewhere, I'm quite sure the contents will include something like the following:

    <background file="background" alignment="topleft" scaling="none"/>
    <welcome file="Welcome"/>
    <license file="License"/>

Is there a way I can include this in a file and have it merged with the Distribution file that packagemaker generates? Even better, can I get packagemaker to properly generate the XML to use the resources folder?

/Mick




 _______________________________________________
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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Packagemaker command line options
      • From: Per Olofsson <email@hidden>
    • Re: Packagemaker command line options
      • From: Mitchell Laurren-Ring <email@hidden>
References: 
 >Packagemaker command line options (From: Mitchell Laurren-Ring <email@hidden>)
 >Re: Packagemaker command line options (From: Mitchell Laurren-Ring <email@hidden>)
 >Re: Packagemaker command line options (From: Vikram Singh <email@hidden>)

  • Prev by Date: Re: Packagemaker command line options
  • Next by Date: Re: Packagemaker command line options
  • Previous by thread: Re: Packagemaker command line options
  • Next by thread: Re: Packagemaker command line options
  • Index(es):
    • Date
    • Thread