Re: versioning Unix executables on MacOSX
Re: versioning Unix executables on MacOSX
- Subject: Re: versioning Unix executables on MacOSX
- From: Steve Christensen <email@hidden>
- Date: Fri, 14 Sep 2007 18:41:23 -0700
On Sep 14, 2007, at 9:58 AM, Darrin Cardani wrote:
On Sep 14, 2007, at 3:38 AM, Valentin Dan wrote:
Is there some way to add version information to Unix executable
files similar to the regular “Applications.app” ?
I don't think so. Traditionally command-line apps accept a command-
line argument such as "-v" to display version information. But I
don't think there's any way to have that information show up in the
Finder, since your application isn't a bundle. You might be able to
add an old-style 'vers' resource to it. I've never tried that, though.
Unix executables show up in the Finder without any "Apple-style"
version information because they don't contain any in the usual
places that the Finder looks. As Darrin mentioned, there are two ways
to provide version info: bundling and adding a version resource.
Neither of these is really a great match for a Unix executable, though.
In the bundle case, your actual executable has to be buried within an
appropriately-constructed folder hierarchy that conforms to the Mac's
bundle requirements.
In the 'vers' resource case, your executable would reside in the
file's data fork and the 'vers' resource in the corresponding
resource fork, and even then I'm not sure if the Finder would think
to look there for a Unix executable (I've never tried). Plus, the
resource fork can easily get stripped off if you move the executable
to a non-HFS file system volume, or archive it via a non-Mac resource
fork aware archiving mechanism.
steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden