Skip to content

DEB using

General rules for using DEB

Available from version CQtDeployer 1.5

How to use deb option

Just add to cqtdeployer option "deb".

For example:

    cqtdeployer ... deb

Where: * ... - is list of other options. * deb - option for create the deb package.

By default, cqtdeployer will create one deb package. If you want create multi package destribution, you should use Controll of packages options To create a new package, use the -targetPackage [package; tar1] option

cqtdeployer create deb package for each packages.

Where:

  • package - it is package name
  • tar1 - it is name of the target that should be included in this package.

Or you can describe packages in configuration file

{
"targetPackage": [
    [
        "package",
        "tar1"
    ],
],
"deb": true
}

License

The -license option (issue #456) inserts the license file into the deb packages. The license file is stored in the standard location of the license text of the Debian policy: the usr/share/doc/<package>/copyright file of the package (the same way the Debian packages of the system store the full license text).

For example:

    cqtdeployer ... deb -license ./LICENSE.txt

Where:

  • ... - is list of other options.
  • deb - option for create the deb package.
  • -license ./LICENSE.txt - the license file that is inserted into the deb packages.

After the install of the package the license is available in the /usr/share/doc/<package>/copyright file (the dpkg -L <package> | grep copyright command shows the path of the license file of the installed package).

Custom Template for DEB

You can create an own Template for the debian packages.

The debian packages structure:

└── Debian templates
    ├── debPackage1
    │   └── DEBIAN
    │       ├── control
    │       ├── postinst
    │       └── prerm
    └── debPackage2
        └── DEBIAN
            ├── control
            ├── postinst
            └── prerm

For include your templates into your destribution you need to add path of the Debian templates folder into deployConfig.json

{
"targetPackage": [
    [
        "debPackage1",
        "tar1"
    ],
    [
        "debPackage2",
        "tar2"
    ],
],
"deb": "./Debian templates"
}

Initialization of the debian template

For initialize default templates you can use the getDefaultTemplate option. The getDefaultTemplate option extract default template of the cqtdeployer. This is can be very convinion if you want override default behavior of the installer or anothe distribution package.

Example

Getting default debian template.

cqtdeployer getDefaultTemplate deb