Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create an OS X package from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create an OS X package from the command line
Authored by: carsten on Jun 23, '03 08:43:06PM

Short answer: Unfortunately, probably not.

Longer answer:
Within an Apple installer pkg, the files to be installed are all stored in the Archive.pax.gz file. So while the pkg itself and its contents are safe to tar up, the pax utility does not support resource forks AFAIK.

Also, I don't know whether the package command-line utility calls pax to do its work or whether the necessary functions are built-in to package along with some kind of added resourcefork support.

There may be a way to hack the pkg after it's been built with package, by manually using the hfspax utility to build a replacement Archive.pax.gz, but would the Installer app honour the resource forks when it's time to install? (hfspax is available in Fink).

If anyone has time to experiment with this, please post your results here.

[ Reply to This | # ]

Create an OS X package from the command line
Authored by: sjk on Jun 23, '03 10:37:43PM
/usr/bin/package is a csh script (yuk!); view it and you'll see it uses pax.

[ Reply to This | # ]