mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
All checks were successful
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/AndroidBuilder_v7 Build finished.
buildbot/DocsGenerator Build finished.
buildbot/LinuxCMakeBuilder Build finished.
buildbot/Wasm32Builder Build finished.
buildbot/AndroidBuilder_v8 Build finished.
buildbot/WindowsCMakeBuilder Build finished.
buildbot/LinuxBuilder Build finished.
buildbot/WindowsBuilder Build finished.
buildbot/IOSCMakeBuilder Build finished.
69 lines
1.6 KiB
C++
69 lines
1.6 KiB
C++
/*
|
|
* Copyright (C) 2018-2022 QuasarApp.
|
|
* Distributed under the lgplv3 software license, see the accompanying
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
* of this license document, but changing it is not allowed.
|
|
*/
|
|
|
|
#ifndef DEPLOY_H
|
|
#define DEPLOY_H
|
|
|
|
#include "deploy_global.h"
|
|
|
|
|
|
class ConfigParser;
|
|
class Extracter;
|
|
class FileManager;
|
|
class DependenciesScanner;
|
|
class PluginsParser;
|
|
class Packing;
|
|
|
|
/**
|
|
* @brief The exitCodes enum contains all general erro codes of the CQtDeployer tool.
|
|
*/
|
|
enum exitCodes {
|
|
// CQtDeployer are deployed project successful. (no error)
|
|
Good = 0x0,
|
|
// CQtDeployer failed in the reading arguments. (fail to parse of input arguments)
|
|
PrepareError = 0x1,
|
|
// CQtDeployer failed in the deploy step. Fail to copy deployed files.
|
|
DeployError = 0x2,
|
|
// CQtDeployer failed in the prepare package step. Fail to create a result pacakge.
|
|
PackingError = 0x3,
|
|
|
|
|
|
};
|
|
|
|
class DEPLOYSHARED_EXPORT Deploy
|
|
{
|
|
private:
|
|
|
|
ConfigParser * _paramsParser = nullptr;
|
|
Extracter *_extracter = nullptr;
|
|
FileManager *_fileManager = nullptr;
|
|
DependenciesScanner *_scaner = nullptr;
|
|
PluginsParser *_pluginParser = nullptr;
|
|
|
|
Packing *_packing = nullptr;
|
|
|
|
bool prepare();
|
|
bool deploy();
|
|
bool packing();
|
|
|
|
|
|
public:
|
|
Deploy();
|
|
int run();
|
|
~Deploy();
|
|
|
|
/**
|
|
* @brief codeString This method retun string message about input code.
|
|
* @param code This is error code;
|
|
* @return Message of code.
|
|
*/
|
|
static QString codeString(int code);
|
|
friend class deploytest;
|
|
};
|
|
|
|
#endif // DEPLOY_H
|