diff options
Diffstat (limited to 'src/libs/ifwtools/binarycreator.h')
-rw-r--r-- | src/libs/ifwtools/binarycreator.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libs/ifwtools/binarycreator.h b/src/libs/ifwtools/binarycreator.h index 0c079b865..387195742 100644 --- a/src/libs/ifwtools/binarycreator.h +++ b/src/libs/ifwtools/binarycreator.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2020 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Installer Framework. @@ -35,6 +35,8 @@ #include "fileutils.h" #include "binaryformat.h" +#include <abstractarchive.h> + #include <QtCore/QString> #include <QtCore/QFile> @@ -48,6 +50,8 @@ struct Input QInstaller::ResourceCollectionManager manager; }; +typedef QInstaller::AbstractArchive::CompressionLevel Compression; + struct IFWTOOLS_EXPORT BinaryCreatorArgs { QString target; @@ -55,6 +59,8 @@ struct IFWTOOLS_EXPORT BinaryCreatorArgs QString templateBinary; QStringList packagesDirectories; QStringList repositoryDirectories; + QString archiveSuffix = QLatin1String("7z"); + Compression compression = Compression::Normal; bool onlineOnly = false; bool offlineOnly = false; QStringList resources; @@ -62,6 +68,7 @@ struct IFWTOOLS_EXPORT BinaryCreatorArgs FilterType ftype = QInstallerTools::Exclude; bool compileResource = false; QString signingIdentity; + bool createMaintenanceTool = false; }; class BundleBackup @@ -70,7 +77,7 @@ public: explicit BundleBackup(const QString &bundle = QString()) : bundle(bundle) { - if (!bundle.isEmpty() && QFileInfo(bundle).exists()) { + if (!bundle.isEmpty() && QFileInfo::exists(bundle)) { backup = QInstaller::generateTemporaryFileName(bundle); QFile::rename(bundle, backup); } @@ -118,6 +125,7 @@ void copyConfigData(const QString &configFile, const QString &targetDir); void copyHighDPIImage(const QFileInfo &childFileInfo, const QString &childName, const QString &targetFile); int IFWTOOLS_EXPORT createBinary(BinaryCreatorArgs args, QString &argumentError); +void IFWTOOLS_EXPORT createMTDatFile(QFile &datFile); } // namespace QInstallerTools |