qds: use QtQuickEffectMaker app bundle path

Change-Id: Id267d50007766b2849b71d7ff9393d6de6f9e3c0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenßen
2023-05-11 10:24:15 +02:00
committed by Tim Jenssen
parent a6ba2354cc
commit 12d9a31f17

View File

@@ -1650,7 +1650,11 @@ void openEffectMaker(const QString &filePath)
const QtSupport::QtVersion *baseQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
if (baseQtVersion) {
Utils::Environment env = Utils::Environment::systemEnvironment();
auto effectMakerPath = baseQtVersion->binPath().pathAppended("qqem").withExecutableSuffix();
if (!effectMakerPath.exists() && env.osType() == Utils::OsTypeMac)
effectMakerPath = baseQtVersion->binPath().pathAppended("qqem.app/Contents/MacOS/qqem");
if (!effectMakerPath.exists()) {
qWarning() << __FUNCTION__ << "Cannot find EffectMaker app";
return;
@@ -1663,7 +1667,6 @@ void openEffectMaker(const QString &filePath)
arguments << "--create";
arguments << "--exportpath" << effectResPath.toString();
Utils::Environment env = Utils::Environment::systemEnvironment();
if (env.osType() == Utils::OsTypeMac)
env.appendOrSet("QSG_RHI_BACKEND", "metal");