简体   繁体   中英

Cross platform way to build DMG file using ANT?

I'm looking to deploy my Java app to MacOS, and the most common way seems to be a DMG file that contains a symlink to the application folder and your application (and you drag one onto the other.)

I'd like to be able to generate the DMG file cross platform via ant - specifically on Windows (though a cross platform Java ANT task would be best!) The only options I've thus found are from this question and either fall under the category of paid applications or Linux commands.

If not, are there any sensible alternatives to a DMG file that would be easier, but still provide the same (or very similar) level of user familiarity? By sensible, I definitely don't mean alternatives like "Just build on a Mac"!

EDIT: I'm currently using JarBundler, but I've yet to find a JavaApplicationStub that works alongside Java 7 (my application requires Java 7 unfortunately which is a bit of a stumbling block it seems!)

签出此内容以从Java 7构建Mac应用程序: http : //docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM