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
convert java app to mac installer...dmg
提问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.
您需要注册一个免费帐户。
回答by Jay Askren
You can use the Macify Maven Plugin.
您可以使用Macify Maven 插件。