分发一个罐子
我正在分发一个 jar 文件,以及相关的库、媒体、文档等。我想为 Linux 用户创建一个简单的 deb/rpm 包,并且我还想为 Windows 分发它。设置 jar 以便与 debs 良好配合的最佳方法是什么?到目前为止,我看过的每个 deb 文件都是带有 makefile 的 c/c++,这根本没有帮助。如何打包我的 java jar 以便分发?
编辑如果这可以自动将conf文件放置在/etc/project-name/sample.conf中,将图标放置在/usr/share中等,那就太好了。
I'm distributing a jar file, with associated libraries, media, documentation, etc. I would like to create a simple deb/rpm package for linux users, and I would also like to distribute this for windows. What is the best way to go about setting up the jar to play nicely with debs? Every deb file I've looked at so far has been c/c++ with a makefile, which isn't at all helpful. How do I package my java jar for distribution?
Edit It would be nice if this could automate the placement of conf files in /etc/project-name/sample.conf, icons in /usr/share, etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个项目可能会让您更轻松。
This project might make it easier for you.
要将 Java 应用程序打包为 Debian 包,我建议使用 jdeb。它非常灵活,并且与 Maven 和 Ant 集成良好。
For packaging your Java application as a Debian package I would recommend jdeb. It's very flexible and integrates well with Maven and Ant.