mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-03 04:59:35 +00:00
Merge pull request #724 from QuasarApp/task_704
Fix call qifw binarycreator tool on windows
This commit is contained in:
commit
e2bd87974a
@ -26,6 +26,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
Deploy deploy;
|
Deploy deploy;
|
||||||
|
|
||||||
|
deploy.init();
|
||||||
|
|
||||||
int code = deploy.run();
|
int code = deploy.run();
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
|
@ -13,7 +13,7 @@ set(CURRENT_PROJECT "${CURRENT_PROJECT_DIR}")
|
|||||||
add_definitions(-DCQT_DEPLOYER_LIBRARY)
|
add_definitions(-DCQT_DEPLOYER_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE_CPP
|
file(GLOB SOURCE_CPP
|
||||||
"src/*.cpp"
|
"src/*.cpp"
|
||||||
"src/*.h"
|
"src/*.h"
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ file(GLOB_RECURSE SOURCE_CPP
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE_QRC
|
file(GLOB SOURCE_QRC
|
||||||
"*.qrc"
|
"*.qrc"
|
||||||
"src/*.qrc"
|
"src/*.qrc"
|
||||||
)
|
)
|
||||||
|
@ -47,24 +47,30 @@ Envirement QIF::toolKitEnv() const {
|
|||||||
// SNAP
|
// SNAP
|
||||||
result.addEnv(AppPath + "/../QIF/");
|
result.addEnv(AppPath + "/../QIF/");
|
||||||
|
|
||||||
//Installer
|
//Installer nad zip
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
result.addEnvRec(AppPath + "/../../QIF/", 2);
|
result.addEnvRec(AppPath + "/../../QIF/", 2);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
result.addEnvRec(AppPath + "/../QIF/", 2);
|
||||||
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<SystemCommandData> QIF::runCmd() {
|
QList<SystemCommandData> QIF::runCmd() {
|
||||||
QString base = "binarycreator";
|
|
||||||
|
|
||||||
SystemCommandData cmd;
|
SystemCommandData cmd;
|
||||||
|
|
||||||
QString binarycreator = QuasarAppUtils::Params::getArg("binarycreator");
|
QString binarycreator = QuasarAppUtils::Params::getArg("binarycreator");
|
||||||
|
|
||||||
if (binarycreator.isEmpty())
|
|
||||||
binarycreator = DeployCore::findProcess(toolKitEnv().concatEnv(), base);
|
|
||||||
|
|
||||||
if (binarycreator.isEmpty()) {
|
if (binarycreator.isEmpty()) {
|
||||||
cmd.command = base;
|
binarycreator = DeployCore::findProcess(toolKitEnv().concatEnv(), "binarycreator");
|
||||||
|
if (binarycreator.isEmpty()) {
|
||||||
|
cmd.command = "binarycreator";
|
||||||
|
} else {
|
||||||
|
cmd.command = binarycreator;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
auto commandsList = binarycreator.split(' ');
|
auto commandsList = binarycreator.split(' ');
|
||||||
cmd.command = commandsList.first();
|
cmd.command = commandsList.first();
|
||||||
|
@ -48,6 +48,11 @@ int Deploy::run() {
|
|||||||
return Good;
|
return Good;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Deploy::init() {
|
||||||
|
initCQtDeployerResources();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Deploy::~Deploy() {
|
Deploy::~Deploy() {
|
||||||
|
|
||||||
if (_extracter) {
|
if (_extracter) {
|
||||||
|
@ -34,6 +34,10 @@ enum exitCodes {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline void initCQtDeployerResources() {
|
||||||
|
Q_INIT_RESOURCE(DeployResources);
|
||||||
|
}
|
||||||
|
|
||||||
class DEPLOYSHARED_EXPORT Deploy
|
class DEPLOYSHARED_EXPORT Deploy
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@ -54,6 +58,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
Deploy();
|
Deploy();
|
||||||
int run();
|
int run();
|
||||||
|
bool init();
|
||||||
~Deploy();
|
~Deploy();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user