Skip to content

Options

a.yankovich edited this page Feb 20, 2020 · 23 revisions

General rules for using options

cqtdeployer -option1 value1 -option2 list, of, values ​​flag1 flag2 flag3
  • All options must begin with a '-' sign.
  • After specifying the desired option, you must specify the value.
  • Some options support enumerations (arrays of values). When initializing such options, specify the list of values through ',' without prabels. If you use any programming language and call the cqtdeployer process, then the array of values must be passed as 1 parameter.
  • Some options support redistributions with the ability to select the target for which the flag will be applied. Target and values are separated using the ';' sign. Example -libOut target1;value1,target2;value2,defaultValue.
  • To include a flag, simply include the flag name in the list of options.

Description of values in the table

  • -binDir [params] - option without array support.
  • -bin [params,list] - option with support for arrays. The delimiter used is ','.
  • -libOut [package;path,path] - parameter with support for selecting the package for which the flag value is set. As a separator, use ';'. Please note that the rule described above is used to enumerate parameter values. The last parameter does not have a package value, this means that this value will be set for all non-configured packages by default.
  • clear - boolean option

Options:

Boolean options

Option Descriptiion
init will initialize cqtdeployer.json file (configuration file)
For example: "cqtdeployer init" - for initialize single package configuration
"cqtdeployer -init multiPackage" - for initialize multi package configuration
help / h Shows help.
clear Deletes deployable files of the previous session.
force-clear Deletes the destination directory before deployment.
noStrip Skips strip step
noTranslations Skips the translations files.
It doesn't work without qmake and inside a snap package
noOverwrite Prevents replacing existing files.
noCheckRPATH Disables automatic search of paths to qmake in executable files.
noCheckPATH Disables automatic search of paths to qmake in system PATH.
v / version Shows compiled version
extractPlugins This flag will cause cqtdeployer to retrieve dependencies from plugins. Starting with version 1.4, this option has been disabled by default, as it can add low-level graphics libraries to the distribution, which will not be compatible with equipment on users' hosts.
allQmlDependes Extracts all the qml libraries.
(not recommended, as it takes great amount of computer memory)
qif Create the QIF installer for deployement programm"
Example: cqtdeployer qif" },
deploySystem Deploys all libraries (do not work in snap )
deploySystem-with-libc deploy all libs libs (only linux) (do not work in snap )

Deploy options:

| Option | Descriptiion | | -bin [list, params] | Deployable file or folder. For example -bin /my/project/bin/,/my/project/bin.exe| | -binDir [params] | A folder which includes deployable files (recursive search). | | -confFile [params] | The path to the json file with all deployment configurations. Using this file, you can add the necessary options, thereby simplifying the command invocation in the console. However, the parameters in Kansol have a higher priority than in the file. For more info about this flag see wiki | | -qmlDir [params] | Qml data dir. For example -qmlDir ~/my/project/qml | | -qmake [params] | Qmake path. For example | | | -qmake ~/Qt/5.14.0/gcc_64/bin/qmake | | -ignore [list,params] | The list of libs to ignore. | | | For example -ignore libicudata.so.56,libicudata2.so.56 | | -ignoreEnv [list,params] | The list of the environment to ignore. | | | For example -ignoreEnv /bad/dir,/my/bad/Dir | | -libDir [list,params] | Sets additional paths for extra libs of an app. | | | For example -libDir /myLib,/newLibs | | -extraLibs [list,params] | Sets the mask of the library name for forced copying. Example: "-extraLib mySql" - forces to copy all libraries whose names contain mySql to the project folder. This option is case sensitive. | | -customScript [scriptCode] | Insert extra code inTo All run script. | | -extraPlugin [list,params]| Sets an additional path to extraPlugin of an app | | -recursiveDepth [params] | Sets the Depth of recursive search of libs (default 0) | | -targetDir [params] | Sets target directory(by default it is the path to the first deployable file)| | -verbose [0-3] | Shows debug log |

Controll of packages options:

Option Descriptiion
-targetPackage [package;tar1,package;tar2] Creates a new package and adds 'tar1 and tar2' to it
-qmlOut [package;path,path] Sets path to qml out directory
-libOut [package;path,path] Sets path to libraries out directory
-trOut [package;path,path] Sets path to translations out directory
-pluginOut [package;path,path] Sets path to plugins out directory
-binOut [package;path,path] Sets path to binary out directory
-recOut [package;path,path] Sets path to recurses out directory
-name [package;val,val] Sets name for package. If this if you do not specify a package, the value will be assigned to the default package ("")
-description [package;val,val] Sets description for package
-deployVersion [package;val,val] Sets version for package
-releaseDate [package;val,val] Sets release date for package
-icon [package;val,val] Sets path to icon for package
-publisher [package;val,val] Sets publisher for package

Example: cqtdeployer -bin myApp -qmlDir ~/MyAppProject/qml -qmake ~/Qt/5.14.1/gcc_64/bin/qmake clear

Clone this wiki locally