Installing Files

To install your project, specify the necessary information in the project file:

Application {
    Group {
        name: "Runtime resources"
        files: "*.qml"
        qbs.install: true
        qbs.installDir: "share/myproject"
    }
    Group {
        name: "The App itself"
        fileTagsFilter: "application"
        qbs.install: true
        qbs.installDir: "bin"
    }
}

In this example, we want to install a couple of QML files and an executable. The actual installation is then done like this (using the default profile):

qbs --clean-install-root qbs.installRoot:/tmp/myProjectRoot

Here, we want the installDir properties from the project file to be interpreted relative to the directory /tmp/myProjectRoot, and we want that directory to be removed first. If the qbs.installRoot property is not given, a default is used, namely <build root>/install-root.

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.