macos 将 java 应用程序转换为 mac 安装程序...dmg

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2174849/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 06:43:11  来源:igfitidea点击:

convert java app to mac installer...dmg

javamacosdmg

提问by sneha

I would like to know do we have any software to convert java app i mean .jar file to .dmg file (installer for mac).Thanks in Advance.

我想知道我们是否有任何软件可以将 java 应用程序转换为 .jar 文件到 .dmg 文件(mac 安装程序)。提前致谢。

回答by Ned Deily

A .dmg file is notan installer, it's a disk image file. If you want to make something available for distribution, the easiest way is to create a new folder (directory), copy all of the files and folders you want to distribute into it, and then use either the OS X Disk Utilityapplication (in /Applications/Utilities) or the command line hdiutilutility to create a new disk image file from the contents of the folder.

.dmg 文件不是安装程序,而是磁盘映像文件。如果您想让某些内容可供分发,最简单的方法是创建一个新文件夹(目录),将要分发的所有文件和文件夹复制到其中,然后使用 OS X磁盘实用程序应用程序(在 /应用程序/实用程序)或命令行hdiutil实用程序从文件夹的内容创建新的磁盘映像文件。

回答by Thorbj?rn Ravn Andersen

Use "Jar Bundler" in the XCode download from Apple Developer Connection.

在 Apple Developer Connection 的 XCode 下载中使用“Jar Bundler”。

http://developer.apple.com/technology/xcode.html

http://developer.apple.com/technology/xcode.html

You will need to register for a free account.

您需要注册一个免费帐户。



Steps: http://www.centerkey.com/mac/java/

步骤:http: //www.centerkey.com/mac/java/

回答by Jay Askren

You can use the Macify Maven Plugin.

您可以使用Macify Maven 插件