You can just do
outputArtifacts: { return [{ fileTags: input.fileTags.contains("encription") ? ["encript-resource"] : ["encript-resource2"], filePath: FileInfo.joinPaths(project.buildDirectory, "encription", input.baseName + ".enc") }]; } Ivan > 8 окт. 2021 г., в 10:45, Карелин Павел <hka...@yandex.ru> написал(а): > > Hi. > > Ivan, only now have "reached the hands" to see your decision. Everything > turned out, the only thing at first I created two separate rules (according > to the rule for each group). It looked like a flaw. However, then I figured > out how to make a universal rule. See comment-section "Variant 1" and > "Variant 2" in the attached file. > > Denis, Ivan, thank you for your help in solving this problem! > > BR, Pavel
_______________________________________________ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs