added docs for new option

This commit is contained in:
Andrei Yankovich 2022-02-08 12:11:19 +03:00
parent eaff7baaf8
commit c014586b59
7 changed files with 58 additions and 4 deletions

View File

@ -660,6 +660,16 @@ void ConfigParser::packagesErrorLog(const QString &option) {
QuasarAppUtils::Error);
}
void ConfigParser::initCustomPlatform() {
const auto platforms = QuasarAppUtils::Params::getArg("platform").
split(DeployCore::getSeparator(0), splitbehavior);
for (const auto& platform: platforms) {
}
}
bool ConfigParser::parseDeployMode(bool checkBin) {
if (QuasarAppUtils::Params::isEndable("deploySystem-with-libc")) {
@ -675,6 +685,8 @@ bool ConfigParser::parseDeployMode(bool checkBin) {
setTargetDir();
initCustomPlatform();
auto bin = QuasarAppUtils::Params::getArg("bin").
split(DeployCore::getSeparator(0), splitbehavior);
@ -852,6 +864,15 @@ void ConfigParser::setTargetDir(const QString &target) {
}
}
void ConfigParser::addTarget(const TargetData& target) {
if (target.targetInfo.getPlatform())
if (!_config.targetsEdit().contains(target.target)) {
_config.targetsEdit().insert(target.target, target.targetInfo);
}
}
bool ConfigParser::setTargets(const QStringList &value) {
bool isfillList = false;
@ -865,9 +886,7 @@ bool ConfigParser::setTargets(const QStringList &value) {
if (targetInfo.isFile()) {
auto target = createTarget(targetInfo.absoluteFilePath());
if (!_config.targetsEdit().contains(target.target)) {
_config.targetsEdit().insert(target.target, target.targetInfo);
}
addTarget();
isfillList = true;
}
@ -898,6 +917,9 @@ bool ConfigParser::setTargets(const QStringList &value) {
QuasarAppUtils::Debug);
}
}
// Work with exits target
}
return isfillList;

View File

@ -114,6 +114,8 @@ private:
QList<iDistribution *> getDistribution();
void addTarget();
void initCustomPlatform();
};
#endif // CQT_H

View File

@ -143,6 +143,14 @@ QtMajorVersion DeployConfig::isNeededQt(const QString &pacakge) const {
return Qt;
}
Platform DeployConfig::customPlatform() const {
return _customPlatform;
}
void DeployConfig::setCustomPlatform(Platform newCustomPlatform) {
_customPlatform = newCustomPlatform;
}
const QHash<QString, TargetInfo> &DeployConfig::targets() const {
return _targets;
}

View File

@ -136,6 +136,18 @@ public:
*/
QtMajorVersion isNeededQt(const QString& pacakge) const;
/**
* @brief customPlatform This is custom platform of distribution
* @return custom platform
*/
Platform customPlatform() const;
/**
* @brief setCustomPlatform This method sets custom platform for this distribution.
* @param newCustomPlatform new custom platform.
*/
void setCustomPlatform(Platform newCustomPlatform);
private:
/**
@ -159,6 +171,8 @@ private:
QString targetDir = "";
QString defaultPackage = "";
Platform _customPlatform = Platform::UnknownPlatform;
};

View File

@ -363,6 +363,12 @@ QuasarAppUtils::OptionsDataList DeployCore::avilableOptions() {
"cqtdeployer -runScript \"myTargetMame;path/to/my/myCustomLaunchScript.sh,myTargetSecondMame;path/to/my/mySecondCustomLaunchScript.sh\""
}});
help.insert(group, {QuasarAppUtils::OptionData{
{"platform"}, "",
"Force deploy only one selected platforms."
}});
group = "Part 3 Control of packages options";
help.insert(group, {QuasarAppUtils::OptionData{

View File

@ -70,7 +70,7 @@ cqtdeployer -option1 value1 -option2 list, of, values flag1 flag2 flag3
| 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. For more information see the extracting default templates [page](ExtractDefaultsTemplates.md) |
| noHashSum | Disable computation of a packages hash sum |
| noHashSum | Disable computation of a packages hash sum |
### Deploy options
@ -102,6 +102,7 @@ cqtdeployer -option1 value1 -option2 list, of, values flag1 flag2 flag3
| -installDirDeb [params] | Sets install target directory fordebian package (by default it is /opt path) |
| -installDirQIFW [params] | Sets install target directory for installers (by default it is /home path) |
| -verbose [0-3] | Shows debug log. By default it is 2 |
| -platform [list] | If this option is enabled then CQtDeployer will deploy only binaries of a selected platform. |
### Controll of packages options

View File

@ -97,6 +97,7 @@ cqtdeployer -option1 value1 -option2 list,of,values flag1 flag2 flag3
| -installDirDeb [параметры] | Устанавливает целевой каталог для установки пакета Debian (по умолчанию это /opt путь) |
| -installDirQIFW [параметры]| Устанавливает целевой каталог установки для инсталляторов (по умолчанию это путь /home) |
| -verbose [0-3] | Показывает дебаг лог. По умолчанию равен 2 |
| -platform [list] | Если этот параметр включен, CQtDeployer будет развертывать только двоичные файлы указанной платформы. |
### Параметры управлениями пакетами: