From 770621c0fe593722c362a98f44fa8b9813d89694 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Thu, 15 Jan 2015 12:14:08 +0100 Subject: [PATCH] WinRT: Clean up target path for mapping file The target inside the mapping file must not start with a slash. However one must specify a path value in the deployment rules, otherwise it will be ignored internally. Task-number: QTCREATORBUG-13835 Change-Id: Ic44cd6bc8c5fd7d48a3a980de566b492180c77fd Reviewed-by: Oliver Wolff --- src/plugins/winrt/winrtpackagedeploymentstep.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/winrt/winrtpackagedeploymentstep.cpp b/src/plugins/winrt/winrtpackagedeploymentstep.cpp index 71f902d66e0..4d072a59a93 100644 --- a/src/plugins/winrt/winrtpackagedeploymentstep.cpp +++ b/src/plugins/winrt/winrtpackagedeploymentstep.cpp @@ -151,6 +151,8 @@ bool WinRtPackageDeploymentStep::processSucceeded(int exitCode, QProcess::ExitSt QList > installableFilesList; foreach (DeployableFile file, target()->deploymentData().allFiles()) { QString remoteFilePath = file.remoteFilePath(); + while (remoteFilePath.startsWith(QLatin1Char('/'))) + remoteFilePath.remove(0, 1); QString localFilePath = file.localFilePath().toString(); if (localFilePath == m_targetFilePath) { if (!m_targetFilePath.endsWith(QLatin1String(".exe"))) {