diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp
index 738d512a830d479ac034e35faf2ed0ca35cdc21b..0c5c3da5961542b3975f27e8e7baab197f3d8b13 100644
--- a/src/plugins/qbsprojectmanager/qbsproject.cpp
+++ b/src/plugins/qbsprojectmanager/qbsproject.cpp
@@ -902,9 +902,8 @@ void QbsProject::updateDeploymentInfo()
         installOptions.setInstallRoot(QLatin1String("/"));
         foreach (const qbs::InstallableFile &f, m_qbsProject
                      .installableFilesForProject(m_projectData, installOptions)) {
-            deploymentData.addFile(f.sourceFilePath(), f.targetDirectory(), f.isExecutable()
-                                   ? DeployableFile::TypeExecutable
-                                   : DeployableFile::TypeNormal);
+            deploymentData.addFile(f.sourceFilePath(), QFileInfo(f.targetFilePath()).path(),
+                    f.isExecutable() ? DeployableFile::TypeExecutable : DeployableFile::TypeNormal);
         }
     }
     activeTarget()->setDeploymentData(deploymentData);
diff --git a/src/shared/qbs b/src/shared/qbs
index 549274d305d1b756c4316c6510f2bb32c5f937e5..a34e10961d4b502bf63099084ae230e25a927754 160000
--- a/src/shared/qbs
+++ b/src/shared/qbs
@@ -1 +1 @@
-Subproject commit 549274d305d1b756c4316c6510f2bb32c5f937e5
+Subproject commit a34e10961d4b502bf63099084ae230e25a927754