mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-26 17:54:32 +00:00
fix #287
This commit is contained in:
parent
5e4f028872
commit
7ca22b2b0e
@ -128,6 +128,10 @@ LibPriority DeployCore::getLibPriority(const QString &lib) {
|
||||
return ExtraLib;
|
||||
}
|
||||
|
||||
if (isAlienLib(lib)) {
|
||||
return AlienLib;
|
||||
}
|
||||
|
||||
return SystemLib;
|
||||
}
|
||||
|
||||
@ -478,6 +482,11 @@ bool DeployCore::isExtraLib(const QString &lib) {
|
||||
return _config->extraPaths.contains(info.absoluteFilePath());
|
||||
}
|
||||
|
||||
bool DeployCore::isAlienLib(const QString &lib) {
|
||||
return lib.contains("/opt/", ONLY_WIN_CASE_INSENSIATIVE) ||
|
||||
lib.contains("/PROGRAM FILES", ONLY_WIN_CASE_INSENSIATIVE);
|
||||
}
|
||||
|
||||
QChar DeployCore::getSeparator(int lvl) {
|
||||
switch (lvl) {
|
||||
case 0: return ',';
|
||||
|
@ -46,7 +46,8 @@ enum LibPriority : int {
|
||||
QtLib = 0x0,
|
||||
ExtraLib,
|
||||
SystemLib,
|
||||
ExtraFile,
|
||||
AlienLib,
|
||||
// ExtraFile,
|
||||
NotFile = 0xF,
|
||||
};
|
||||
|
||||
@ -150,6 +151,8 @@ public:
|
||||
static bool isQtLib(const QString &lib);
|
||||
static bool isExtraLib(const QString &lib);
|
||||
static QChar getSeparator(int lvl);
|
||||
static bool isAlienLib(const QString &lib);
|
||||
|
||||
static char getEnvSeparator();
|
||||
|
||||
static LibPriority getLibPriority(const QString &lib);
|
||||
|
@ -329,11 +329,11 @@ void Extracter::extractLib(const QString &file,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.getPriority() != LibPriority::SystemLib && !depMap->containsNeadedLib(line.fullPath())) {
|
||||
if (line.getPriority() < LibPriority::SystemLib && !depMap->containsNeadedLib(line.fullPath())) {
|
||||
depMap->addNeadedLib(line.fullPath());
|
||||
|
||||
} else if (QuasarAppUtils::Params::isEndable("deploySystem") &&
|
||||
line.getPriority() == LibPriority::SystemLib &&
|
||||
line.getPriority() >= LibPriority::SystemLib &&
|
||||
!depMap->containsSysLib(line.fullPath())) {
|
||||
|
||||
depMap->addSystemLib(line.fullPath());
|
||||
|
Loading…
x
Reference in New Issue
Block a user