forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user