**Deployment file** - it's a json file containing the parameters for cqtdeployer. This file supports all parameters except confFile, since this parameter is responsible for connecting and initializing the file itself.
"description": "this is description for default package",
"deployVersion": "1.0.0",
"releaseDate": "yyyy-MM-dd",
"icon": "/path/main/icon.png",
"publisher": "main team",
"customScript": "echo 'I am use custom script!!!'"
}
```
File Using Enumerated Parameters
``` json
{
"noOverwrite": false,
"bin": "./",
"binDir": "./",
"qmlDir": [
[
"package2",
"./TestQMLWidgets/"
],
[
"./qml/for/All"
]
],
"deploySystem": false,
"deploySystem-with-libc": false,
"qmake": "this parameter should contain the path to your qmake, for Windows this field is required. On Linux, you can remove it, then qmake will be found by rpath.",
"ignore": "ignoreLib.dll",
"ignoreEnv": "/my/ignore/path",
"clear": true,
"force-clear": false,
"allQmlDependes": false,
"libDir": "./",
"recursiveDepth": 3,
"extraLibs": "myExtraLib (libssl)",
"extraPlugin": "myExtraPulgin (platforms)",
"targetDir": "./Distro",
"targetPackage": [
[
"/package1/",
"TestOnlyC"
],
[
"/package2/",
"TestQMLWidgets"
]
],
"noStrip": false,
"extractPlugins": false,
"noTranslations": false,
"qmlOut": "qml",
"libOut": "lib",
"trOut": "tr",
"pluginOut": "plug",
"binOut": "bin",
"recOut": "rec",
"verbose": 3,
"qif": false,
"noCheckRPATH": false,
"noCheckPATH": false,
"name": [
[
"package2",
"package2Application"
],
[
"mainApplication"
]
],
"description": [
[
"package2",
"this is description for package 'package2'"
],
[
"this is description for default package"
]
],
"deployVersion": [
[
"package2",
"1.0.0"
],
[
"1.0.0"
]
],
"releaseDate": [
[
"package2",
"yyyy-MM-dd"
],
[
"yyyy-MM-dd"
]
],
"icon": [
[
"package2",
"/path/icon.png"
],
[
"/path/main/icon.png"
]
],
"publisher": [
[
"package2",
"team of package2"
],
[
"main team"
]
],
"customScript": "echo 'I am use custom script!!!'"
}
```
The purpose of file is to simplify the cqtdeployer's call and move some of the parameters into a file. The parameters specified in the file have a lower priority than the parameters added to the console at the run.
1. Call `cqtdeployer init` to initialize the file for a single-package application.
Or `cqtdeployer -init multi` to initialize the file for a project with multiple packages.
2. Open CQtDeployer.json and edit it to fit your needs.
3. Call 'cqtdeployer' in the directory with the file 'CQtDeployer.json', or specify the path to it using the flag '-confFile path/to/my/CQtDeployer.json'
#### The second method
Call the cqtdeployer with a set of parameters you need and specify the path to the file using -confFile flag (the file should be absent). If the file exists, cqtdeployer will start unloading the parameters from it.