AppMan: Fix crash when using a qmlproject

Limit the Deploy Configuration and the CMake step to CMake projects.

Change-Id: If198dc2e4277861f2aa9183c5eeed0cc1d40727c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Dominik Holland
2024-03-06 09:27:51 +01:00
parent bb87db09e2
commit e3f099b8f3
2 changed files with 3 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public:
setDisplayName(Tr::tr("Create Application Manager package with CMake"));
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
setSupportedProjectType(CMakeProjectManager::Constants::CMAKE_PROJECT_ID);
}
};

View File

@@ -16,6 +16,7 @@
#include <boot2qt/qdbconstants.h>
#include <remotelinux/remotelinux_constants.h>
#include <cmakeprojectmanager/cmakeprojectconstants.h>
using namespace ProjectExplorer;
@@ -37,6 +38,7 @@ public:
addSupportedTargetDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
addSupportedTargetDeviceType(RemoteLinux::Constants::GenericLinuxOsType);
addSupportedTargetDeviceType(Qdb::Constants::QdbLinuxOsType);
setSupportedProjectType(CMakeProjectManager::Constants::CMAKE_PROJECT_ID);
addInitialStep(Constants::CMAKE_PACKAGE_STEP_ID);
addInitialStep(Constants::DEPLOY_PACKAGE_STEP_ID, isNecessaryToDeploy);