Greetings,
I'll give you the core of how I solved this for myself, since I do all
my build-for-release on Linux, which can't build .dmg files natively
(someone please correct me if I'm wrong!), which would be your optimal
solution.
On Mon, 13 Dec 2004 13:48:13 -0800, Brad Johanson
<email@hidden> wrote:
> Hello,
>
[...deletia...]
> As far as I understand, zip won't store permissions? Is there some
Correct, it wasn't designed to handle that, and still doesn't, unfortunately.
> other cross-platform archive format that we can use that will make
> sure the permissions still get set right on a Mac? DMG seems like the
> best format, but as far as I've been able to determine we can't
> construct these under Linux which is where we build the packages.
Exactly my problem. I've heard rumours of a dmg-builder, but have
never seen it.
> Somebody suggested tar, but it seems ugly to hand the average Mac
> users a tar file.
This is my solution, and it's actually much better than you might
think. If you hand out a tar.gz of the app, then when users download
(or double-click), the minimal version of Stuffit that ships with OS X
automatically uncompresses and untars the file. If you've named it
MyProgram.app.tar.gz, then the resulting directory is MyProgram.app,
which hides the .app and appears as a straight-up application to the
end user.
Works very well for distributing my open source app, and is buildable
via Ant using platform-independant rules (ant includes a Jar building
tool).
> Another suggestion posted in the past on the list
> was to use a jar file with the main routine set up to extract the
> files from the jar and set the permissions. This last one is the most
> feasible suggestion I've seen so far, but still not as easy as having
> people download and have everything extracted ready to go.
It's also not terribly cross-platform, as 'chmod' doesn't exist on
Windows, for instance. You'd have to basically call shell functions
as (last time I checked) the file modes couldn't be set cross-platform
in Java. (This may have changed, iirc, but if it has it's only for
people running very new JVMs.)
> Any thoughts or suggestions appreciated,
>
> -Brad
Optimally, we'd have a DMG-generation tool for Linux. Failing that, I
believe an app.tar.gz is a perfectly reasonable way to distribute the
application, as it can be double-clicked on to cleanly extract the
application. No 'Terminal' futzing required.
-- Morgan Schweers, CyberFOX!
p.s. Sorry if this came through twice, it shouldn't, but just in case...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden