[Qbs] Understanding installation rules

Richard Weickelt richard at weickelt.de
Mon Nov 18 22:27:40 CET 2019

> The reason why I added the "application" tag to the rule is that this
> seemed to force the execution of the rule, with otherwise wouldn't be
> considered.

This is semantically wrong because your rule does not produce an
"application" artifact. I'd suggest to add "desktopfile" to the
additionalProductTypes property of your module:


> I understand that QBS is not running the rule again, because both the
> application and the desktopfile are still available under the build
> directory. But why isn't the desktopfile copied to the installRoot
> again, along with the application?

Does it work with the change suggested above?

More information about the Qbs mailing list