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.
This commit is contained in:
oop7
2026-02-03 17:41:54 +02:00
parent 030b37c505
commit b776b3efa9
+2 -4
View File
@@ -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