<div dir="ltr">Hi,<br>I want to install local files and I'm having trouble making sense of the `installSourceBase' property.<br><br>I'm using qbs 1.4.4 with Qt Creator 3.6.0 on Windows with Qt 5.5.1, stock install. Here's what my folder tree looks like:<br><br>\---recursive_install<br>    +---assets<br>    |   +---txt<br>    |   |       file.txt<br>    |   |<br>    |   \---xml<br>    |           file.xml<br>    |<br>    +---proj<br>    |   +---qbs<br>    |   |       recursive_install.qbs<br>    |   |<br>    |   \---vs2013<br>    |           recursive_install.sln<br>    |           recursive_install.vcxproj<br>    |           recursive_install.vcxproj.filters<br>    |           recursive_install.vcxproj.user<br>    |<br>    \---src<br>            main.cpp<br><br>And here's what recursive_install.qbs looks like:<br><br>import qbs<br><br>CppApplication {<br>    consoleApplication: true<br>    files: "../../src/main.cpp"<br><br>    Group {<br>        name: "Assets"<br>        files: ["../../assets/**"]<br>        qbs.install: true<br>//        qbs.installDir: "assets"               // #1<br>//        qbs.installSourceBase: "../../assets"  // #2<br>    }<br>    Group {     // Properties for the produced executable<br>        fileTagsFilter: product.type<br>        qbs.install: true<br>    }<br>}<br><br>When I uncomment #1, the local files are installed into `installRoot/assets', but the folder structure is not preserved: both `file.txt' and `file.xml' go into `assets'.<br><br>When I uncomment both #1 and #2, then it works as I intended: the local files are installed to their respective folders, under `install-root/assets'.<br><br>I've read [1] but couldn't make sense of what this means:<br>"Specifies the base directory of the local files that are going to be installed. The source base directory is omitted from the target directory path specified in installDir."<br>If e.g. I set qbs.installSourceBase as in #2, then does it mean that:<br>- `../../assets/txt/file.txt' will be stripped of "../../assets",<br>- prefixed with qbs.installDir as in #1,<br>- and installed to 'assets/txt/file.txt' (this is what I want)?<br>Or does it mean something else? Doesn't this clash with what's described in [2], where it is instructed that qbs.installSourceBase is set to "."?<br><br>BTW, I inadvertently put an invalid path in #2, saved the file, and Qt Creator immediately crashed -- no error message in the issues pane, no warning dialog, nothing. I upgraded to 3.6.1 and it still crashes.<br><br>Best regards,<br><br>Georger<br><br>[1] <a href="http://doc.qt.io/qbs/qbs-module.html#installation-properties">http://doc.qt.io/qbs/qbs-module.html#installation-properties</a><br>[2] <a href="https://bugreports.qt.io/browse/QBS-842">https://bugreports.qt.io/browse/QBS-842</a><br></div><div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #aaabb6">
        <tr>
                
                <td style="width:470px;padding-top:20px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Este e-mail foi enviado por um computador sem vírus e protegido pelo Avast. <br><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>                </td>
        </tr>
</table>
<a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>