将 java 应用程序转换为 mac 安装程序...dmg
我想知道我们是否有任何软件可以将 java 应用程序(我的意思是 .jar 文件转换为 .dmg 文件)(Mac 的安装程序)。提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
.dmg 文件不是安装程序,而是一个磁盘映像文件 。如果您想让某些内容可供分发,最简单的方法是创建一个新文件夹(目录),将要分发的所有文件和文件夹复制到其中,然后使用 OS X 磁盘工具应用程序(在/Applications/Utilities中)或命令行 hdiutil实用程序从文件夹的内容创建新的磁盘映像文件。
A .dmg file is not an 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 Utility application (in /Applications/Utilities) or the command line hdiutil utility to create a new disk image file from the contents of the folder.
使用从 Apple Developer Connection 下载的 XCode 中的“Jar Bundler”。
http://developer.apple.com/technology/xcode.html
您将需要注册一个免费帐户。
步骤: http://www.centerkey.com/mac/java/
Use "Jar Bundler" in the XCode download from Apple Developer Connection.
http://developer.apple.com/technology/xcode.html
You will need to register for a free account.
Steps: http://www.centerkey.com/mac/java/
您可以使用 Macify Maven 插件。
You can use the Macify Maven Plugin.