mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-05 22:19:36 +00:00
ref #621 "added qifOut option"
This commit is contained in:
parent
d57c8660c0
commit
d404afaa07
@ -248,6 +248,10 @@ QString QIF::installerFile() const {
|
|||||||
#else
|
#else
|
||||||
QString sufix = ".exe";
|
QString sufix = ".exe";
|
||||||
#endif
|
#endif
|
||||||
|
QString qifOut = QuasarAppUtils::Params::getArg("qifOut");
|
||||||
|
if (qifOut.size()) {
|
||||||
|
return DeployCore::_config->getTargetDir() + "/" + qifOut;
|
||||||
|
}
|
||||||
|
|
||||||
return DeployCore::_config->getTargetDir() + "/Installer" + generalInfo.Name + sufix;
|
return DeployCore::_config->getTargetDir() + "/Installer" + generalInfo.Name + sufix;
|
||||||
}
|
}
|
||||||
|
@ -321,6 +321,7 @@ void DeployCore::help() {
|
|||||||
" Available styles: quasar, quasarDark"},
|
" Available styles: quasar, quasarDark"},
|
||||||
{"-qifBanner [path/to/banner.png]", "Sets path to the banner png file."},
|
{"-qifBanner [path/to/banner.png]", "Sets path to the banner png file."},
|
||||||
{"-qifLogo [path/to/logo.png]", "Sets path to the logo png file."},
|
{"-qifLogo [path/to/logo.png]", "Sets path to the logo png file."},
|
||||||
|
{"-qifOut [nameOfOutputInstallerFile.run", "Sets name of output qifw installer."},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -184,6 +184,7 @@ private slots:
|
|||||||
|
|
||||||
void testDisableShortcuts();
|
void testDisableShortcuts();
|
||||||
void testDisableRunScripts();
|
void testDisableRunScripts();
|
||||||
|
void testQifOut();
|
||||||
|
|
||||||
void customTest();
|
void customTest();
|
||||||
};
|
};
|
||||||
@ -1517,6 +1518,23 @@ void deploytest::testDisableRunScripts() {
|
|||||||
"-disableRunScript", "TestOnlyC"}, &comapareTreeqif);
|
"-disableRunScript", "TestOnlyC"}, &comapareTreeqif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void deploytest::testQifOut() {
|
||||||
|
TestUtils utils;
|
||||||
|
|
||||||
|
#ifdef Q_OS_UNIX
|
||||||
|
QString bin = TestBinDir + "TestOnlyC";
|
||||||
|
#else
|
||||||
|
QString bin = TestBinDir + "TestOnlyC.exe";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
auto result = utils.createTree({{DISTRO_DIR + "/QIF_OUT"},
|
||||||
|
{DISTRO_DIR + "/QIF_OUT.md5"}});
|
||||||
|
|
||||||
|
// Run deploy installer
|
||||||
|
runTestParams({"-bin", bin, "clear",
|
||||||
|
"qif", "-qifOut", "QIF_OUT"}, &result);
|
||||||
|
}
|
||||||
|
|
||||||
void deploytest::customTest() {
|
void deploytest::customTest() {
|
||||||
//runTestParams({"-confFile", "",
|
//runTestParams({"-confFile", "",
|
||||||
// "qifFromSystem"});
|
// "qifFromSystem"});
|
||||||
|
@ -149,6 +149,7 @@ cqtdeployer -option1 value1 -option2 list, of, values flag1 flag2 flag3
|
|||||||
| -qifStyle [path/to/style.css]| Sets the path to the CSS style file or sets the default style. Available styles: quasar |
|
| -qifStyle [path/to/style.css]| Sets the path to the CSS style file or sets the default style. Available styles: quasar |
|
||||||
| -qifBanner [path/to/banner.png]| Sets path to the banner png file. |
|
| -qifBanner [path/to/banner.png]| Sets path to the banner png file. |
|
||||||
| -qifLogo [path/to/logo.png]| Sets path to the logo png file. |
|
| -qifLogo [path/to/logo.png]| Sets path to the logo png file. |
|
||||||
|
| -qifOut [nameOfOutputInstallerFile.run] | Sets name of output qifw installer. |
|
||||||
|
|
||||||
|
|
||||||
#### Example: cqtdeployer -bin myApp -qmlDir ~/MyAppProject/qml -qmake ~/Qt/5.15.4/gcc_64/bin/qmake clear
|
#### Example: cqtdeployer -bin myApp -qmlDir ~/MyAppProject/qml -qmake ~/Qt/5.15.4/gcc_64/bin/qmake clear
|
||||||
|
@ -145,6 +145,7 @@ cqtdeployer -option1 value1 -option2 list,of,values flag1 flag2 flag3
|
|||||||
| -qifStyle [path/to/style.css]| Устанавливает путь к CSS файлу стиля или устанавливает стиль по умолчанию. Доступные стили: quasar |
|
| -qifStyle [path/to/style.css]| Устанавливает путь к CSS файлу стиля или устанавливает стиль по умолчанию. Доступные стили: quasar |
|
||||||
| -qifBanner [path/to/banner.png]| Устанавливает путь к png-файлу баннера. |
|
| -qifBanner [path/to/banner.png]| Устанавливает путь к png-файлу баннера. |
|
||||||
| -qifLogo [path/to/logo.png]| Устанавливает путь к файлу логотипа png. |
|
| -qifLogo [path/to/logo.png]| Устанавливает путь к файлу логотипа png. |
|
||||||
|
| -qifOut [nameOfOutputInstallerFile.run] | Устанавливает имя выходного установщика qifw. |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user