How can I preserve the attributes for the files with resource forks?

asked 14 Sep '11, 11:08

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


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
link

answered 14 Sep '11, 11:10

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

The problem with your mac bundle not launching after being built on Windows is likely a problem with the files permissions. Windows doesn't understand unix style file permissions and seems to gobble them up in processing the installer creation (I'm guessing that because it doesn't understand them it mangles them when it packs or something). I would suggest building your installers for all three platforms on either Linux or Mac (they both understand Windows file permissions).

link

answered 15 Oct '12, 11:14

Bob%20Gardner's gravatar image

Bob Gardner
21113
accept rate: 0%

I'm testing Installbuilder on Win and for the OS X version it builds, the program (MAC.app) which get installed can't be launched (though it appears to be identical to my source MAC.app). I tried this method but I get an "error changing type attribute" error at the end of the Mac installation.

The code I used is something like this: <changeosxattributes files="${installdir}/MAC.app" type="avbstClinmedz"/>

That string for application_type was obtained with Getfileinfo.

The MAC.app is a Flash projector. Maybe the problem is that WIn sees it as a directory?

It just doesn't launch ....

link

answered 30 Nov '11, 11:43

flablo's gravatar image

flablo
1
accept rate: 0%

Sorry, I'm not sure I understand the issue. Are you testing the installed MAC.app bundle on Windows?

(16 Dec '11, 04:44) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×92
×51
×29
×5
×2
×1

Asked: 14 Sep '11, 11:08

Seen: 1,972 times

Last updated: 15 Oct '12, 11:14