mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 18:54:33 +00:00
ref #661 "fix deploy icons "
This commit is contained in:
parent
bf81c108c7
commit
3f11a9d163
@ -275,7 +275,6 @@ bool iDistribution::deployIcon(const DistroModule& pkg) {
|
||||
auto localData = dataLocation(pkg);
|
||||
const DeployConfig *cfg = DeployCore::_config;
|
||||
|
||||
QSet<QString> icons;
|
||||
for (const auto& target: pkg.targets()) {
|
||||
auto targetObject = cfg->targets().value(target);
|
||||
|
||||
@ -292,8 +291,11 @@ bool iDistribution::deployIcon(const DistroModule& pkg) {
|
||||
QuasarAppUtils::Params::log(QString("%0: %1").arg(target, icon),
|
||||
QuasarAppUtils::Debug);
|
||||
|
||||
if (icons.contains(icon))
|
||||
break;
|
||||
if (!targetObject.fEnableRunScript()) {
|
||||
QuasarAppUtils::Params::log(QString("%0: %1 Ignored").arg(target, icon),
|
||||
QuasarAppUtils::Debug);
|
||||
continue;
|
||||
}
|
||||
|
||||
QFileInfo iconInfo(icon);
|
||||
QFileInfo runScript(targetObject.getRunScriptFile());
|
||||
@ -307,8 +309,6 @@ bool iDistribution::deployIcon(const DistroModule& pkg) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
icons += icon;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user