简体   繁体   English

如何为Ubuntu打包Java程序?

[英]How do I package a Java program for Ubuntu?

I have an application that currently a user downloads and runs an install script. 我有一个当前用户下载并运行安装脚本的应用程序。 I want to be able to take the JAR file and such that is generated by NetBeans and make it into a package that a user can download through a package manager. 我希望能够提取NetBeans生成的JAR文件并将其放入用户可以通过程序包管理器下载的程序包中。 It needs to have menus implemented as well (the entries in the Debian menu that the user can click on). 它还需要实现菜单(用户可以单击Debian菜单中的条目)。

Currently I am following through this tutorial: http://packaging.ubuntu.com/html/packaging-new-software.html 目前,我正在按照本教程进行操作: http : //packaging.ubuntu.com/html/packaging-new-software.html

However, I am worried that I am going down some kind of rabbit hole in the wrong direction. 但是,我担心我会沿着错误的方向钻进某种兔子洞。 Surely this must be something that is common? 当然这一定是常见的吗?

What is the standard procedure for getting your JAR file to other people through packages? 通过软件包将JAR文件发送给其他人的标准过程是什么?

I needed to: 我需要:

  • Install dpkg. 安装dpkg。
  • Create a directory structure similar to how I would like it unpacked. 创建类似于我希望其解压缩的目录结构。
  • Create a shell script that would copy it there. 创建一个shell脚本,将其复制到那里。
  • Run dpkg. 运行dpkg。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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