McuSupport: add /bin path of "stm32CubeProgrammer" to Path

... and make the detection a bit more explicit.

Change-Id: I8dc4f6dbdcc44e4e3cd56e332dd6d5ca6fa12021
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-10-17 18:30:12 +02:00
parent 17354cebad
commit 5b2ca680a7

View File

@@ -370,8 +370,10 @@ static PackageOptions* createStm32CubeProgrammerPackage()
auto result = new PackageOptions( auto result = new PackageOptions(
McuSupportOptionsPage::tr("STM32CubeProgrammer"), McuSupportOptionsPage::tr("STM32CubeProgrammer"),
defaultPath, defaultPath,
"bin", QLatin1String(Utils::HostOsInfo::isWindowsHost() ? "/bin/STM32_Programmer_CLI.exe"
: "/bin/STM32_Programmer.sh"),
"stm32CubeProgrammer"); "stm32CubeProgrammer");
result->setRelativePathModifier("/bin");
result->setDownloadUrl( result->setDownloadUrl(
QUrl::fromUserInput("https://www.st.com/en/development-tools/stm32cubeprog.html")); QUrl::fromUserInput("https://www.st.com/en/development-tools/stm32cubeprog.html"));
result->setAddToPath(true); result->setAddToPath(true);