-
-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (28 loc) · 975 Bytes
/
main.cpp
File metadata and controls
38 lines (28 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Copyright (C) 2018-2026 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.
*/
#include "deploycore.h"
#include <QCoreApplication>
#include <QDir>
#include <QFileInfo>
#include <QList>
#include <deploy.h>
int main(int argc, char *argv[]) {
QCoreApplication::setOrganizationName("QuasarApp");
QCoreApplication::setOrganizationDomain("https://github.com/QuasarApp");
QCoreApplication::setApplicationName("CQtDeployer");
if (!QuasarAppUtils::Params::parseParams(argc, argv, DeployCore::avilableOptions())) {
qWarning() << "Wrong parameters. Please use the 'help' of 'h' option to show the help page.";
exit(4);
}
Deploy deploy;
deploy.init();
int code = deploy.run();
if (code) {
qCritical() << Deploy::codeString(code);
}
return code;
}