Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
-
Qt6 Installer Sprint 3, Qt6 Installer Sprint 4
Description
Study how to remove exported conan recipe from local cache when uninstalling a marketplace extension from installer.
Way 1 (for demonstration):
This can be done by registering an UNDO step for execute operation. An example operation might look like this, assuming "TARGET_INSTALL_DIR" points to installation path of the component and "QtConanBinary" is set:
component.addOperation("Execute", "workingdirectory=@TargetDir@" + TARGET_INSTALL_DIR, installer.value("QtConanBinary"), "export", ".", "qtcharts/5.12.3@qt/final", "UNDOEXECUTE", installer.value("QtConanBinary"), "remove", "-f", "qtcharts/5.12.3@qt/final");
Way 2:
Could be done using the operations described in QTIFW-1563. qt.tools.conan component would need to register a valid command sequence for removing exported marketplace extension from local cache.