Andrei Yankovich
Andrei YankovichMay 24, 2021, 10:10 a.m.

Release of the C++/Qt and QML application deployment utility CQtDeployer v1.5.0

Release of the C++/Qt and QML application deployment utility CQtDeployer v1.5.0

Logo


This is the first major update in 2021. CQtDeployer 1.5 contains many useful improvements. The biggest improvements are the addition of the ability to package deb packages, and the ability to use your own packaging template for the qt install framework.

Complete list of all changes

CQtDeployer 1.5.0

New features

  • Added new theme of qif installer "quasarDark".
  • Added support of work with custom template for qif option.
  • Added support of debian packages.
  • Added support of targets icons. now the icon option work with targets but not packages.
  • Added support of the control custom translation files.
  • Added support the deploy nonexecutable data. (extraData option)
  • Added envirement variables for deployed applications.
  • Added support of the generate deb packages.
  • Added support of the generate zip arrhives.
  • Added support create a qif installer using custom template
  • Added command for init default qif and deb templates (getDefaulttemplate)
  • Added support of import custom launch scripts
  • Added support of md5 packages hashes
  • Added support of Qt6.1

Fixes

  • Fixed stability for the deploySystem option on windows
  • Fixed verbose log.
  • Fixed general output log.
  • Fixed typo errors in log.
  • Fixed cross-deployment for ARM platform .
  • Fixed deploy Qt6 qml
  • Fixed powershell commands on Windows
  • bug fixes and improvements.

New Envirement Variables

  • CQT_RUN_FILE - This variable contains path to the run script of the using application.
  • CQT_PKG_ROOT - This variable contains path to root of the current package.

New parameters

  • zip - create a ZIP archive for deployable programm
  • deb - Create the deb package for deployable programm
  • homepage - Sets the homepage url for a package
  • noQt - Ignors the error of initialize of a qmake. Use only if your application does not use the qt framework
  • allowEmptyPackages - Allows configure the empty packages.
  • getDefaultTemplate - Extracts defaults deb or qif templates.
  • tr - Adds qm files into the translations folder.
  • extraData - Adds the extra files or directories like a target. The selected directory will be copy to the extraDataOut location with save own structure.
  • extraDataOut - Sets path to extra data files out directory.
  • prefix - Sets the prefix for the package relatively a target directory
  • homePage - Sets the homepage url for a package
  • binPrefix - Sets prefix for bin option.
  • noHashSum - Disables campute hashes of packages

Deprecated and removed options

  • deploySystem-with-libc - instead of this option use the deploySystem option.
  • allQmlDependes - instead of this option use the qmlDir option.

Detailed analysis of the most interesting changes.

Debian pacakges

This feature is very conveniently if you want to create server application.
For example i need to create simple server for my simple game.
And my steps:
build my application in the release mode.
run cqtdeployer with deb option.

cqtdeployer -bin mySimpleServer deb -qmake ~/Qt/5.15.2/gcc_64/bin/qmake

The SimpleServer depends only on qt, so it was enough for me to specify only the path to qmake for my application.

It is all!!!. And i get the workly deb package.
By Default CQtDeployer create an independet debian packages.

Zip arrhives

This feature allow compress your distribution pacakges to zip arrhive.

Example:

cqtdeployer -bin mySimpleServer zip -qmake ~/Qt/5.15.2/gcc_64/bin/qmake

Custom Qt Installer Framework tempaltes.

Now you can override default template of the cqtdeployer. To do this, you must pass the path to your template to the qif parameter.

cqtdeployer ... -qif /path/to/my/custom/qif/template

Template

The qif template should contain 2 folders:
packages
config

Attention

The name of the packages in the packages folder must match the names of the packages during deployment.

For example:

"targetPackage": [
    [
        "myCustomInstaller",
        "tar1"
    ]
],
.
├── config
│ ├── config.xml
│ └── style.qss
└── packages
    └── myCustomInstaller
        └── meta
            ├── installscript.qs
            └── package.xml

4 directories, 4 files

If the folder names do not match the package names then CQtDeployer will use the standard QIF package.

If you have only one package then you can use the name option for set name the application.

cqtdeployer ... -qif /path/to/my/custom/qif/template -name myCustomInstaller

Do not forget to rename the your package folder to the packaga name of the name option.

.
├── config
│   ├── config.xml
│   └── style.qss
└── packages
    └── myCustomInstaller  << "This is folder of the your package"
        └── meta
            ├── installscript.qs
            └── package.xml

4 directories, 4 files

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.

Do you like it? Share on social networks!

e
  • Aug. 21, 2021, 3:16 p.m.
  • (edited)

Привет.
Подскажите пожалуйста решения двух проблем:
1. Не могу создать установщик с помощью флага qif. просиходит ошибка, но текста ошибки нет. поэтому не знаю куда копать. текст что упаковка не удалась я гуглил, находил только сами исходники деплоера.

"c:\Program Files (x86)\CQtDeployer\1.5\cqtdeployer.bat" -bin test.exe -qmake "c:\Qt\Qt5.6.3\5.6.3\mingw49_32\bin\qmake.exe" qif

ошибка на скрине


  1. В описании новшевств есть флаг tr, но он без параметров не работает. Я предполагал что он скопирует все имеющиеся переводы, но их нужно перечислись при использовании -tr.
    Это так и должно быть, или я что-то делаю не так, и можно сделать так, чтобы деплойер сам забирал все файлы перевода без перечисления?
    (и еще баг форума чтоли, я пишу этот пункт под номером "2.", но после отправки он превращается в "1.")
Andrei Yankovich
  • Aug. 27, 2021, 7:44 a.m.
  • (edited)

На данный момент Qt Installer Framework не поддерживает Windows 7
смотрите баг #2224

e
  • Aug. 28, 2021, 3:49 p.m.

Благодарю.
Действительно, подменил файлы от версии 4.0, и все заработало)

Comments

Only authorized users can post comments.
Please, Log in or Sign up
MB

Qt - Test 001. Signals and slots

  • Result:57points,
  • Rating points-2
MB

C++ - Test 001. The first program and data types

  • Result:60points,
  • Rating points-1
GK

C++ - Test 005. Structures and Classes

  • Result:0points,
  • Rating points-10
Last comments
J
JonnyJoJune 8, 2023, 10:14 p.m.
Qt/C++ - Lesson 019. How to paint triangle in Qt5. Positioning shapes in QGraphicsScene Евгений, здравствуйте! Решил поэкспериментировать немного с кодом из этого урока, нарисовать вместо треугольника квадрат и разобраться с координатами. В итоге, запутался. И ни документация,…
J
JonnyJoMay 26, 2023, 12:24 a.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Евгений, благодарю!
Evgenii Legotckoi
Evgenii LegotckoiMay 25, 2023, 2:49 p.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Код на строчка 184-198 вызывает перерисовку области на каждый 4-й такт счётчика. По той логике не нужно перерисовывать объект постоянно, достаточно реже, чем выполняется игровой слот. А слот вып…
J
JonnyJoMay 21, 2023, 8:49 p.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Евгений, благодарю! Всё равно не совсем понимаю :( Если муха двигает ножками только при нажатии клавиш перемещение, то что, собственно, делает код со строк 184-198 в triangle.cpp? В этих строчка…
Evgenii Legotckoi
Evgenii LegotckoiMay 21, 2023, 3:57 p.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Добрый день. slotGameTimer срабатывает по таймеру и при каждой сработке countForSteps увеличивается на 1, это не зависит от нажатия клавиш, нажатая клавиша лишь определяет положение ножек, котор…
Now discuss on the forum
T
TwangerJune 7, 2023, 9:12 p.m.
Ошибка при выполнении триггерной функции (GreenPlum) Есть 3 таблицы fact_amount со структурой: CREATE TABLE fact_amount ( id serial4 NOT NULL, fdate date NULL, type_activity_id int4 NULL, status_id int4 NULL, CONSTRAINT fact…
AR
Alexander RyabikovJune 6, 2023, 11:35 p.m.
Работа с QFileSystemModel Вопросик по теме QFileSystemModel в Linux. Он, как и положено, обновляется самостоятельно, если директория локальная. Но, вот, сетевая папка (у меня шара samba) не обновляется. Как её можно…
Evgenii Legotckoi
Evgenii LegotckoiApril 16, 2023, 2:07 p.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Да, это возможно. Но подобные вещи лучше запускать через celery. То есть drf принимает команду, и после этого регистрирует задачу в celery, котроый уже асинхронно всё это выполняет. В противном …
АБ
Алексей БобровDec. 15, 2021, 6:03 a.m.
Sorting the added QML elements in the ListModel I am writing an alarm clock in QML, I am required to sort the alarms in ascending order (depending on the date or time (if there are several alarms on the same day). I've done the sorting …

Follow us in social networks