From b776b3efa94e1b3b0248127ca0bcdb3ea61d6bb3 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:41:54 +0200 Subject: [PATCH] Keep QtDBus and related plugins in macOS build Add PySide6.QtDBus to the list of included PySide6 modules and stop removing DBus-related artifacts during the macOS packaging step. The changes remove deletions of the platforminputcontexts plugin and libqpdf/libqsvg/libqsvgicon files, and remove QtDBus from the list of Qt modules treated as bloat. This preserves D-Bus support and related SVG/PDF rendering plugins required at runtime. --- .github/workflows/build-macos.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 2237ff8..9ad8988 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -103,6 +103,7 @@ jobs: "PySide6.QtWidgets", "PySide6.QtMultimedia", "PySide6.QtNetwork", + "PySide6.QtDBus", "requests", "PIL", "packaging", @@ -232,16 +233,13 @@ jobs: done # Specific cleanups - rm -rf "$plugins_path/platforminputcontexts" find "$plugins_path" -name "libqpdf.*" -delete - find "$plugins_path" -name "libqsvg.*" -delete - find "$plugins_path" -name "libqsvgicon.*" -delete fi # 4. Remove bloat Qt libraries / Frameworks # Iterate specifically over unwanted Qt modules # Matches both 'QtQml' (file) and 'QtQml.abi3.so' etc - for bloat in QtQml QtQmlMeta QtQmlModels QtQmlWorkerScript QtQuick QtQuickControls2 QtQuickTemplates2 QtWebEngine QtWebEngineCore QtVirtualKeyboard QtVirtualKeyboardQml QtOpenGL QtOpenGLWidgets QtPdf QtPdfWidgets QtDBus; do + for bloat in QtQml QtQmlMeta QtQmlModels QtQmlWorkerScript QtQuick QtQuickControls2 QtQuickTemplates2 QtWebEngine QtWebEngineCore QtVirtualKeyboard QtVirtualKeyboardQml QtOpenGL QtOpenGLWidgets QtPdf QtPdfWidgets; do find "$lib_dir" -maxdepth 2 -name "$bloat" -delete find "$lib_dir" -maxdepth 2 -name "${bloat}.*" -delete find "$lib_dir" -maxdepth 2 -name "*$bloat*" -delete