Re: Packagemaker command line options
Re: Packagemaker command line options
- Subject: Re: Packagemaker command line options
- From: Vikram Singh <email@hidden>
- Date: Sat, 23 Jun 2012 06:40:06 +0530
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!
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