Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application / Package confusion



Rib Rdb <email@hidden> wrote:

>Unless you need to install files to multiple directories, you shouldn't be
>using a package. Just compress the Application Bundle using zip or tar+gz
>and let people put it where they want.

Last time I looked, ZIP will not preserve executable permission. This will
render the unzipped app unusable without some kind of user intervention via
Terminal or similar means.

The tar format does preserve permissions.

It is also possible to create a double-clickable jar that installs an
app-bundle, and correctly sets permissions etc. within the app-bundle by
exec()'ing commands like 'chmod'. Such a jar can be created on any Java
platform, though it would only work when run on Mac OS X.

Personally, I prefer distributing apps via .dmg disk-image files, because
the app is immediately usable and need not be installed at all. Disk-image
files can only be created on Mac OS X, however, AFAIK.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.