1

I'm new in Ubuntu. I'm a web dev and have created html app using electron.

There are a lot of instruction how to create a deb package. So now I have built a .deb package and can install it. However I couldn't find some issues:

  1. How to make my package updatable via update manager? I have found here that I can command

sudo add-apt-repository deb http://something something

Is it a correct if I will run this command in postinstall script? and what means something and something

  1. What should be a structure of files? I have found this this link is software updater. So the question is: is it a standard dir/files tree and where I can read the description of this structure?

  2. How I can make my software installable via apt-get? I want to keep source on my server

  3. What is a signature and how I can sign my software.

Thanks for any information, because I've spent 3 days and couldn't find needed info about it.

Gleb
  • 119

1 Answers1

2

How to make my package updatable via update manager?

How I can make my software installable via apt-get? I want to keep source on my server.

For both of these things, you'll need to create a repository to host your package, so that it can be downloaded. The easiest way to do this is to create a PPA on Launchpad. You will then have a PPA / repository, trough which you can distribute your software. See How do I create a PPA?

Is it a correct if I will run this command in postinstall script?

No, don't do this. If you create a repository, users should add it (on the computer where they want to install your package) first, using the command sudo add-apt-repository ppa:your-repo/ppa, and then install your package with sudo apt-get install yourpackage.

If you do not want to use a PPA, but want to submit your package to the main Ubuntu repository, see https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages.

What is a signature and how I can sign my software.

A "Signature" is a way for users to ensure that the package they get was not tampered with or modified, so that they can be sure that the package was created by you and not by someone else. This is for security. If you use Launchpad PPAs, this will be done for you. If you only want to sign the debian package, see how do you create a "signed" deb package

What should be a structure of files?

There is a good guide here, otherwise, you need to make sure that the files for your program are in the right place ("/opt/, /bin/, /lib/, and so on.)

Jonas Czech
  • 4,047