forked from qt-creator/qt-creator
Use HostOsInfo::withExecutableSuffix instead of if/else
Let's use our Utils. Change-Id: I8cfbce55d2b41e42e86d050433df2cfd20cebe1b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -215,9 +215,7 @@ bool AndroidBuildApkStep::init()
|
||||
QString command = version->hostBinPath().toString();
|
||||
if (!command.endsWith('/'))
|
||||
command += '/';
|
||||
command += "androiddeployqt";
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
command += ".exe";
|
||||
command += Utils::HostOsInfo::withExecutableSuffix("androiddeployqt");
|
||||
|
||||
QString outputDir = bc->buildDirectory().pathAppended(Constants::ANDROID_BUILDDIRECTORY).toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user