Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.5.4.13 #689

Merged
merged 3 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Deploy/Deploy.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TEMPLATE = lib

DEFINES += DEPLOY_LIBRARY

VERSION = 1.5.4.12
VERSION = 1.5.4.13

DEFINES += APP_VERSION='\\"$$VERSION\\"'

Expand Down
6 changes: 6 additions & 0 deletions Deploy/Distributions/qif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ QList<SystemCommandData> QIF::runCmd() {

cmd.arguments.push_back(installerFile());

QString customFormat = QuasarAppUtils::Params::getArg("qifArchiveFormat");
if (customFormat.size()) {
cmd.arguments.push_back("--af");
cmd.arguments.push_back(customFormat);
}

return {cmd};
}

Expand Down
6 changes: 6 additions & 0 deletions Deploy/deploycore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ QuasarAppUtils::OptionsDataList DeployCore::avilableOptions() {
"Sets target directory(by default it is the path to the first deployable file)"
}});

help.insert(group, {QuasarAppUtils::OptionData{
{"-qifArchiveFormat"}, "[7z|zip|tar|tar.gz|tar.bz2|tar.xz]",
"Sets the format used when packaging new component data archives."
" If you omit this option, the 7z format will be used as a default. "
}});

group = "Part 7 Deb package options";

help.insert(group, {QuasarAppUtils::OptionData{
Expand Down
2 changes: 1 addition & 1 deletion QIFData/QIF.pri
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ unix: PLATFORM = linux
win32:PY = python
unix: PY = python3

qif.commands= $$PY $$PWD/scripts/QIF.py $$PLATFORM 4.2 $$PWD/packages/QIF/data
qif.commands= $$PY $$PWD/scripts/QIF.py $$PLATFORM 4.3 $$PWD/packages/QIF/data
alias.commands= $$PY $$PWD/scripts/alias.py

!isEmpty( ONLINE ) {
Expand Down
2 changes: 1 addition & 1 deletion QIFData/config/configLinux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<WizardDefaultWidth>640px</WizardDefaultWidth>
<WizardDefaultHeight>400px</WizardDefaultHeight>
<Name>CQtDeployer</Name>
<Version>1.5.4.12</Version>
<Version>1.5.4.13</Version>
<Title>CQtDeployer</Title>
<Publisher>QuasarApp</Publisher>
<StartMenuDir>CQtDeployer</StartMenuDir>
Expand Down
2 changes: 1 addition & 1 deletion QIFData/config/configWin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<WizardDefaultWidth>640px</WizardDefaultWidth>
<WizardDefaultHeight>400px</WizardDefaultHeight>
<Name>CQtDeployer</Name>
<Version>1.5.4.12</Version>
<Version>1.5.4.13</Version>
<Title>CQtDeployer</Title>
<Publisher>QuasarApp</Publisher>
<StartMenuDir>CQtDeployer</StartMenuDir>
Expand Down
4 changes: 2 additions & 2 deletions QIFData/installerCQtDeployer.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.5.4.12
VERSION = 1.5.4.13

include($$PWD/InstallerBase.pri);
mkpath( $$PWD/../Distro)
Expand All @@ -25,7 +25,7 @@ BASE_DEPLOY_FLAGS_CQT = $$BASE_DEPLOY_FLAGS -targetDir $$DATA_DIR $$OUT_LIB $$OU

win32:CQT_ICON = -icon $$PWD/config/icon.ico
unix:CQT_ICON = -icon $$PWD/config/logo.png
BASE_DEPLOY_FLAGS_DEB = $$BASE_DEPLOY_FLAGS -targetDir $$PWD/../Distro $$OUT_LIB $$OUT_BIN deb zip -name CQtDeployer -publisher QuasarApp $$CQT_ICON -deployVersion 1.5.4.12 -debOut CQtDeployer_'$$VERSION'_Linux'_$$QMAKE_HOST.arch'.deb -zipOut CQtDeployer_'$$VERSION'_Linux'_$$QMAKE_HOST.arch'.zip
BASE_DEPLOY_FLAGS_DEB = $$BASE_DEPLOY_FLAGS -targetDir $$PWD/../Distro $$OUT_LIB $$OUT_BIN deb zip -name CQtDeployer -publisher QuasarApp $$CQT_ICON -deployVersion 1.5.4.13 -debOut CQtDeployer_'$$VERSION'_Linux'_$$QMAKE_HOST.arch'.deb -zipOut CQtDeployer_'$$VERSION'_Linux'_$$QMAKE_HOST.arch'.zip

DEPLOY_TARGET_DEB = $$DEPLOY_TARGET,$$PWD/packages/QIF/data/QIF
deploy_dep.commands += $$DEPLOYER -bin $$DEPLOY_TARGET $$BASE_DEPLOY_FLAGS_CQT
Expand Down
4 changes: 2 additions & 2 deletions QIFData/packages/QIF/meta/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Package>
<DisplayName>Qt Installer Framework</DisplayName>
<Description>Qt Installer Framework for CQtDeployer</Description>
<Version>4.2.0.0</Version>
<ReleaseDate>2021-11-30</ReleaseDate>
<Version>4.3.0.0</Version>
<ReleaseDate>2022-03-03</ReleaseDate>
<Default>true</Default>
</Package>
4 changes: 2 additions & 2 deletions QIFData/packages/cqtdeployer.1_5/meta/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<Package>
<DisplayName>CQtDeployer 1.5</DisplayName>
<Description>CQtDeployer 1.5</Description>
<Version>1.5.4.12</Version>
<Version>1.5.4.13</Version>
<Default>true</Default>
<ForcedInstallation>false</ForcedInstallation>
<Script>installscript.js</Script>
<ReleaseDate>2021-06-15</ReleaseDate>
<ReleaseDate>2022-03-03</ReleaseDate>
<SortingPriority>201</SortingPriority>
<Translations>
<Translation>ru.qm</Translation>
Expand Down
29 changes: 29 additions & 0 deletions UnitTests/tst_deploytest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ private slots:
void testQIFResources();

void testCustomPlatform();
void testQifArchiveFormat();

void customTest();
};
Expand All @@ -202,6 +203,8 @@ deploytest::deploytest() {
qputenv("QTEST_FUNCTION_TIMEOUT", "1800000");
QString qifwPath = qgetenv("PATH") + DeployCore::getEnvSeparator() + TestQtDir + "../../Tools/QtInstallerFramework/4.0/bin/";
qifwPath += qifwPath + DeployCore::getEnvSeparator() + TestQtDir + "../../Tools/QtInstallerFramework/4.1/bin/";
qifwPath += qifwPath + DeployCore::getEnvSeparator() + TestQtDir + "../../Tools/QtInstallerFramework/4.2/bin/";
qifwPath += qifwPath + DeployCore::getEnvSeparator() + TestQtDir + "../../Tools/QtInstallerFramework/4.3/bin/";

qputenv("PATH", qifwPath.toLatin1().data());
TestUtils utils;
Expand Down Expand Up @@ -1689,6 +1692,32 @@ void deploytest::testCustomPlatform() {
);
}

void deploytest::testQifArchiveFormat() {
TestUtils utils;

#ifdef Q_OS_UNIX
QString bin = {TestBinDir + "TestOnlyC"};

auto result = utils.createTree({{DISTRO_DIR + "/InstallerTestOnlyC.run"},
{DISTRO_DIR + "/InstallerTestOnlyC.run.md5"}});
#else
QString bin = {TestBinDir + "TestOnlyC.exe"};

auto result = utils.createTree({{DISTRO_DIR + "/InstallerTestOnlyC.exe"},
{DISTRO_DIR + "/InstallerTestOnlyC.exe.md5"}});
#endif


runTestParams({
"-bin", bin,
"qifFromSystem",
"clear",
"qif",
"-qifArchiveFormat", "zip"
}, &result
);
}

void deploytest::customTest() {
//runTestParams({"-confFile", "",
// "qifFromSystem"});
Expand Down
1 change: 1 addition & 0 deletions md/en/Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ cqtdeployer -option1 value1 -option2 list, of, values ​​flag1 flag2 flag3
| -qifConfig [path/to/config.xml] | Sets a custom path to the configure file of the qt ifw installer. By default it is qif/config/config.xml. Note This path sets releative target folder (sets by TargetDir option). |
| -qifPackages [path/to/packagesFodoler] | Sets a custom path to the packages directories. By default it is qif/packages. Note This path sets releative target folder (sets by TargetDir option). |
| -qifResources [path/to/resources1.qrc,path/to/resources2.qrc] | Sets a custom path to the resources files. By default this option is skipped. Note This path sets releative target folder (sets by TargetDir option). |
| -qifArchiveFormat [7z|zip|tar|tar.gz|tar.bz2|tar.xz] | Sets the format used when packaging new component data archives. If you omit this option, the 7z format will be used as a default. |

### Deb package options

Expand Down
1 change: 1 addition & 0 deletions md/ru/Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ cqtdeployer -option1 value1 -option2 list,of,values flag1 flag2 flag3
| -qifConfig [path/to/config.xml] | Устанавливает пользовательский путь к файлу конфигурации установщика qt ifw. По умолчанию это qif/config/config.xml. Важно путь считаеться относительным целевого католога (установленным опцией targetDir). |
| -qifPackages [path/to/packagesFodoler] | Устанавливает пользовательский путь к каталогам пакетов. По умолчанию это qif/packages. Важно путь считаеться относительным целевого католога (установленным опцией targetDir). |
| -qifResources [path/to/resources1.qrc,path/to/resources2.qrc] | Устанавливает пользовательский путь к файлам ресурсов. По умолчанию эта опция пропущена. Важно путь считаеться относительным целевого католога (установленным опцией targetDir). |
| -qifArchiveFormat [7z|zip|tar|tar.gz|tar.bz2|tar.xz] | Задает формат, используемый при упаковке новых архивов данных компонентов. Если вы опустите этот параметр, по умолчанию будет использоваться формат 7z. |

### Deb package options:

Expand Down
4 changes: 2 additions & 2 deletions snap/gui/cqtdeployer.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=1.5.4.12
Version=1.5.4.13
Name=CQtDeployer
Comment=CQtDeployer Help.
Exec=cqtdeployer
Expand All @@ -10,6 +10,6 @@ Categories=Application;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=CQtDeployer
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=1.5.4.12
X-GNOME-Bugzilla-Version=1.5.4.13
StartupNotify=true
Name[ru_RU]=CQtDeployer
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

name: cqtdeployer # you probably want to 'snapcraft register <name>'
version: '1.5.4.12' # just for humans, typically '1.2+git' or '1.3.2'
version: '1.5.4.13' # just for humans, typically '1.2+git' or '1.3.2'
summary: deploy your qt projects # 79 char long summary
description: |
Console app for deploy qt libs.
Expand Down