mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 02:04:33 +00:00
fix clear Mode
This commit is contained in:
parent
198070a7fe
commit
8316078431
@ -52,12 +52,18 @@ bool Deploy::prepare() {
|
||||
|
||||
int Deploy::deploy() {
|
||||
|
||||
if (DeployCore::getMode() != RunMode::Deploy) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
_fileManager->loadDeployemendFiles(_paramsParser->config()->targetDir);
|
||||
_extracter->deploy();
|
||||
|
||||
switch (DeployCore::getMode() ) {
|
||||
case RunMode::Deploy:
|
||||
_extracter->deploy();
|
||||
break;
|
||||
case RunMode::Clear:
|
||||
_extracter->clear();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
_fileManager->saveDeploymendFiles(_paramsParser->config()->targetDir);
|
||||
|
||||
return 0;
|
||||
|
@ -50,7 +50,6 @@ class DEPLOYSHARED_EXPORT Extracter {
|
||||
void extractAllTargets();
|
||||
|
||||
void initQtModules();
|
||||
void clear();
|
||||
|
||||
void extractPlugins();
|
||||
|
||||
@ -66,6 +65,7 @@ public:
|
||||
explicit Extracter(FileManager *fileManager, ConfigParser * cqt);
|
||||
bool createRunScript(const QString &target);
|
||||
void deploy();
|
||||
void clear();
|
||||
|
||||
friend class deploytest;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user