forked from qt-creator/qt-creator
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 <oliver.wolff@theqtcompany.com>
This commit is contained in:
@@ -151,6 +151,8 @@ bool WinRtPackageDeploymentStep::processSucceeded(int exitCode, QProcess::ExitSt
|
|||||||
QList<QPair<QString, QString> > installableFilesList;
|
QList<QPair<QString, QString> > installableFilesList;
|
||||||
foreach (DeployableFile file, target()->deploymentData().allFiles()) {
|
foreach (DeployableFile file, target()->deploymentData().allFiles()) {
|
||||||
QString remoteFilePath = file.remoteFilePath();
|
QString remoteFilePath = file.remoteFilePath();
|
||||||
|
while (remoteFilePath.startsWith(QLatin1Char('/')))
|
||||||
|
remoteFilePath.remove(0, 1);
|
||||||
QString localFilePath = file.localFilePath().toString();
|
QString localFilePath = file.localFilePath().toString();
|
||||||
if (localFilePath == m_targetFilePath) {
|
if (localFilePath == m_targetFilePath) {
|
||||||
if (!m_targetFilePath.endsWith(QLatin1String(".exe"))) {
|
if (!m_targetFilePath.endsWith(QLatin1String(".exe"))) {
|
||||||
|
Reference in New Issue
Block a user