From ae09de43409fcc7930644f29d31d0508f8dd388c Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Wed, 16 Sep 2015 13:12:35 +0200 Subject: [PATCH] WinRT: specify argument for winrtrunner Starting with Windows 10 the application manifest does not specify the target device anymore. Hence winrtrunner cannot automatically detect which profile to use. Instead, use the device information from the kit and explicitly set it as additional arguments. Change-Id: Id2f747a270620b6a6e7d0ae578adfc4373d80266 Reviewed-by: Andrew Knight Reviewed-by: Oliver Wolff --- src/plugins/winrt/winrtrunnerhelper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/winrt/winrtrunnerhelper.cpp b/src/plugins/winrt/winrtrunnerhelper.cpp index 7a0dc238e2a..4eae432a2a6 100644 --- a/src/plugins/winrt/winrtrunnerhelper.cpp +++ b/src/plugins/winrt/winrtrunnerhelper.cpp @@ -218,6 +218,9 @@ void WinRtRunnerHelper::startWinRtRunner(const RunConf &conf) break; } + if (m_device->type() == Constants::WINRT_DEVICE_TYPE_LOCAL) + QtcProcess::addArgs(&runnerArgs, QStringLiteral("--profile appx")); + QtcProcess::addArg(&runnerArgs, m_executableFilePath); if (!m_arguments.isEmpty()) QtcProcess::addArgs(&runnerArgs, m_arguments);