How do I create a .deb file?

Posted by JamesTheAwesomeDude on Ask Ubuntu See other posts from Ask Ubuntu or by JamesTheAwesomeDude
Published on 2012-11-11T15:11:06Z Indexed on 2012/11/11 23:12 UTC
Read the original article Hit count: 404

Filed under:
|
|
|

Yes, I know that this question has been asked many times before, but none of the answers really helped.
I'd like to package the Minecraft launcher (which has no proprietary code, AFAIK,) into a .deb file so that I can put it on a flash drive and share it with my friends. I have managed to install Minecraft it manually (put some files into /opt/minecraft, download an icon, and create a .desktop file in /usr/share/applications,) and I have made a shell script that completely automates the process, but it relies on wget to retrieve a few files, including the .desktop file. (It isn't a self-extracting archive, after all.)

I'd like to be able to do this offline, as a lot of my friends have slow or no internet. (One of their internet lines was buried so shallowly that it actually got knocked out by the lawnmower.)
I won't be loading it into a PPA or anything like that; I just want it to be a "formal" package that can be easily installed and uninstalled. (One thing that I would like is for sudo apt-get purge minecraft to also remove the .minecraft folder. It would also be nice to define the dependedcies as being able to accept OpenJDK or Sun's JVM.)

Oh, just so you know, the Minecraft launcher is a .jar file, but I can very, very easily launch it via shell scripts. The exact command is right on the download page.

© Ask Ubuntu or respective owner

Related posts about packages

Related posts about dependencies