Running Applications Using the Shell

# 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 install --install-root /tmp/myProjectRoot --remove-first

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 `--install-root` option is not given, a default is used, namely `<build root>/install-root`. Qbs understands the special install root value `@sysroot`, which stands for the value of the property `qbs.sysroot`.

Running Applications Using the Shell