mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 10:44:33 +00:00
added docs for new option
This commit is contained in:
parent
eaff7baaf8
commit
c014586b59
@ -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;
|
||||
|
@ -114,6 +114,8 @@ private:
|
||||
|
||||
QList<iDistribution *> getDistribution();
|
||||
|
||||
void addTarget();
|
||||
void initCustomPlatform();
|
||||
};
|
||||
|
||||
#endif // CQT_H
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 будет развертывать только двоичные файлы указанной платформы. |
|
||||
|
||||
### Параметры управлениями пакетами:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user