On Thu, 27 Jul 2006, Norman Gray wrote:
> I've modified TOPCAT's build.xml so that the script is installed in /
> Volumes/TOPCAT\ 2.2/topcat/bin, rather than under .../TOPCAT\ 2.2/
> TOPCAT.app. The Finder displays directory Foo.app as an application
> -- that is, as an opaque thing, and not as a folder/directory, so
> that you have to take special action (control-click, or right-click,
> or something) to see inside it from the UI. Of course, from a shell
> it looks just like an ordinary directory. The Foo.app directory is
> therefore in principle opaque to the user.
>
> Does that look like the right sort of place?
>
> It's also common to have a brief README.rtf in such a distribution,
> saying something like ``To install, drag the TOPCAT.app to your /
> Applications folder. There is documentation in topcat/sun253/
> index.html, and a command-line launch script in topcat/bin''. I can
> easily add such a file if you want.
Norman,
thanks for the clear explanation and suggestions. TOPCAT 2.2/topcat/bin
sounds like a reasonable place for the script, but it probably
won't work because the script needs to know where the topcat-full.jar
file is, and it doesn't know to look in
../../TOPCAT.app/Contents/Resources/Java. I probably need to
take a closer look at what's going on and preferably understand
a bit more about what .dmg/.app files are supposed to be for
and how they're organised. If there's an obvious on-line
reference for that sort of thing maybe you could pass it on,
otherwise I'm sure I can find something by poking around.
I'm reeling a bit from the discovery that my software is installing
itself in a directory whose name contains whitespace - the horror!
> Presumably Treeview would require a similar edit.
I'm not expending any effort on Treeview support these days,
certainly not to macify it. I'm not aware that the build_osxapp
target is ever getting invoked for treeview in any case, or if
it is that the result is distributed anywhere.
Mark
PS apologies for laming out of the debate last week on, er, whatever
it was we were talking about. I agreed with many of your points
and disagreed with a few, but arrived at that point where I felt
like I'd better get back to the day job. cheers.
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|