Closed darealshinji closed 10 years ago
Thanks a lot for reporting!
In short I am going to release a new version of my software DualSub. This version (1.0.1) resolves the detected bugs. This time I am going to try generate the dev package correctly.
Could you please give some hints to generate this package correctly from the jar file?
In addition, the first time I tried to publish DualSub in a ppa repository:
https://launchpad.net/~bonigarcia/+archive/ubuntu/dualsub
... but I didn't managed to do it.
Do you know how to do publish a Java application to a ppa repository?
Thanks a lot!
I need to know the commands to compile a java app. And when you say dev package, what files should that one include? Normally those packages include C headers and static libs, is there such an equivalent to java (I don't know much about Java at all)?
That was a typo. I meant "deb package", not "dev pacakge".
In this deb file it should be packaged the runnable jar file, which is obtained from the sources using Maven: mvn clean compile assembly:single This command compiles .java and generates the output, a jar file, which is then packaged in the deb.
In src/main/resources/img are the cosmos*.gif files really necessary? Together their size is 60 mb, without them the app would have less then 2 mb. Maybe you could delete or move other image files that aren't needed by the app too? edit: Replacing the VLC snapshot with a JPEG saves a few kb too.
I made a pull request which includes the files to build a Debian package: https://github.com/bonigarcia/dualsub/pull/2
Your Debian package is not made in a very clean way. Running Lintian on it gives me many warnings and errors:
I was able to get rid of all these issues.
To sum it up, I moved the jar file to /usr/share, fixed the file permissions (run dpkg-deb with fakeroot), and added a manpage, copyright and changelog file. The rest were just some formatting issues.
Additionally I replaced the icon with a full set of hicolor icons and added Java to the package dependencies. I've also changed the category to "video" and set the version in the changelog from "1.0" to "1.0.0".
Here's the fixed package: https://github.com/darealshinji/dualsub/blob/debian/Debian/dualsub_1.0.0_all.deb