From 5e6ff555ab5a49650307b9fe2f9547892945935d Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Sun, 13 Aug 2017 18:45:09 -0700 Subject: Fix deployment to Windows 10 Mobile devices Task-number: QTCREATORBUG-18728 Change-Id: Ib04ca8a0a163611bbb53bc50f2e0009ab460ce35 Reviewed-by: Oliver Wolff Reviewed-by: Maurice Kalinowski --- src/plugins/winrt/winrtrunnerhelper.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/winrt/winrtrunnerhelper.cpp b/src/plugins/winrt/winrtrunnerhelper.cpp index a8986a8026..dbeff0e13e 100644 --- a/src/plugins/winrt/winrtrunnerhelper.cpp +++ b/src/plugins/winrt/winrtrunnerhelper.cpp @@ -183,8 +183,14 @@ void WinRtRunnerHelper::startWinRtRunner(const RunConf &conf) break; } - if (m_device->type() == Constants::WINRT_DEVICE_TYPE_LOCAL) + switch (m_device->type()) { + case Constants::WINRT_DEVICE_TYPE_LOCAL: QtcProcess::addArgs(&runnerArgs, QStringLiteral("--profile appx")); + break; + case Constants::WINRT_DEVICE_TYPE_PHONE: + QtcProcess::addArgs(&runnerArgs, QStringLiteral("--profile appxphone")); + break; + } QtcProcess::addArg(&runnerArgs, m_executableFilePath); if (!m_arguments.isEmpty()) -- cgit v1.2.1