From 030b37c50590226824e84203f95fb474fedd5d34 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:19:44 +0200 Subject: [PATCH] Adjust PySide6 components and plugin cleanup Add PySide6.QtDBus and PySide6.QtSvg to the list of required modules and remove PySide6.QtSvg from the secondary module list. Stop removing the svg plugin, platforminputcontexts and svg-related image/icon libraries during the cleanup pass (only libqpdf.so is still removed). These changes ensure QtSvg and D-Bus components are preserved in the Linux build and prevent stripping SVG-related functionality. --- .github/workflows/build-linux.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 0811f77..489c5be 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -117,6 +117,8 @@ jobs: "PySide6.QtWidgets", "PySide6.QtMultimedia", "PySide6.QtNetwork", + "PySide6.QtDBus", + "PySide6.QtSvg", "requests", "PIL", "packaging", @@ -135,7 +137,6 @@ jobs: "PySide6.QtBluetooth", "PySide6.QtOpenGL", "PySide6.QtPrintSupport", - "PySide6.QtSvg", "PySide6.QtTest", "PySide6.QtXml", "PySide6.QtSql", @@ -237,16 +238,14 @@ jobs: # 3. Remove unused Qt plugins plugins_dir="$lib_dir/PySide6/plugins" if [ -d "$plugins_dir" ]; then - for plugin in designer pdf svg sql help qml quick webengine bluetooth opengl printsupport test xml; do + for plugin in designer pdf sql help qml quick webengine bluetooth opengl printsupport test xml; do if [ -d "$plugins_dir/$plugin" ]; then rm -rf "$plugins_dir/$plugin" echo "Removed plugin: $plugin" fi done - # Specific cleanups (input contexts, imageformats) - rm -rf "$plugins_dir/platforminputcontexts" - rm -f "$plugins_dir/imageformats/libqpdf.so" "$plugins_dir/imageformats/libqsvg.so" - rm -f "$plugins_dir/iconengines/libqsvgicon.so" + # Specific cleanups (imageformats) + rm -f "$plugins_dir/imageformats/libqpdf.so" fi # 4. Remove bloat shared libraries (Recursively finds in lib/ and lib/PySide6/)