How can I preserve the attributes for the files with resource forks?
| Author: BitRock Support Date: June 11, 2010 14:13 Tags: |
Features
OS X Troubleshooting |
In some cases, when building installer for OS X platforms, you may need to add the piece of code below in your xml project in order to correctly preserve the attributes for the file with resource forks.
<postInstallationActionList> ... <changeOSXAttributes creator="creator_code" files="${installdir}/path/to/your/file" type="application_type" /> ... </postInstallationActionList> |
You can get the right attributes values for creator and type using the GetFileInfo tool:
/Developer/Tools/GetFileInfo /path/to/your/file