AppMan: Use device specific tool paths

This makes sure the RunConfiguration is correctly executed on the remote
device.
For steps executed on the host, a nullptr can be passed as device.

Change-Id: Ide5aa5a06402b137494c10108d09a4e7ffa32ec9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Dominik Holland
2024-01-24 09:25:12 +01:00
parent fdb0ba0389
commit 707886faac
4 changed files with 5 additions and 8 deletions

View File

@@ -44,7 +44,8 @@ QString getToolFilePath(const QString &toolname, const Kit *kit, const IDevice::
const FilePath path = local ? getToolPathByQtVersion(QtKitAspect::qtVersion(kit))
: FilePath(Constants::REMOTE_DEFAULT_BIN_PATH);
const QString name = getToolNameByDevice(toolname, device);
return !path.isEmpty() ? path.pathAppended(name).toString() : name;
const QString filePath = !path.isEmpty() ? path.pathAppended(name).toString() : name;
return !device ? filePath : device->filePath(filePath).toUserOutput();
}
QString getToolNameByDevice(const QString &baseName, const QSharedPointer<const IDevice> &device)