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.
This commit is contained in:
@@ -117,6 +117,8 @@ jobs:
|
|||||||
"PySide6.QtWidgets",
|
"PySide6.QtWidgets",
|
||||||
"PySide6.QtMultimedia",
|
"PySide6.QtMultimedia",
|
||||||
"PySide6.QtNetwork",
|
"PySide6.QtNetwork",
|
||||||
|
"PySide6.QtDBus",
|
||||||
|
"PySide6.QtSvg",
|
||||||
"requests",
|
"requests",
|
||||||
"PIL",
|
"PIL",
|
||||||
"packaging",
|
"packaging",
|
||||||
@@ -135,7 +137,6 @@ jobs:
|
|||||||
"PySide6.QtBluetooth",
|
"PySide6.QtBluetooth",
|
||||||
"PySide6.QtOpenGL",
|
"PySide6.QtOpenGL",
|
||||||
"PySide6.QtPrintSupport",
|
"PySide6.QtPrintSupport",
|
||||||
"PySide6.QtSvg",
|
|
||||||
"PySide6.QtTest",
|
"PySide6.QtTest",
|
||||||
"PySide6.QtXml",
|
"PySide6.QtXml",
|
||||||
"PySide6.QtSql",
|
"PySide6.QtSql",
|
||||||
@@ -237,16 +238,14 @@ jobs:
|
|||||||
# 3. Remove unused Qt plugins
|
# 3. Remove unused Qt plugins
|
||||||
plugins_dir="$lib_dir/PySide6/plugins"
|
plugins_dir="$lib_dir/PySide6/plugins"
|
||||||
if [ -d "$plugins_dir" ]; then
|
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
|
if [ -d "$plugins_dir/$plugin" ]; then
|
||||||
rm -rf "$plugins_dir/$plugin"
|
rm -rf "$plugins_dir/$plugin"
|
||||||
echo "Removed plugin: $plugin"
|
echo "Removed plugin: $plugin"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Specific cleanups (input contexts, imageformats)
|
# Specific cleanups (imageformats)
|
||||||
rm -rf "$plugins_dir/platforminputcontexts"
|
rm -f "$plugins_dir/imageformats/libqpdf.so"
|
||||||
rm -f "$plugins_dir/imageformats/libqpdf.so" "$plugins_dir/imageformats/libqsvg.so"
|
|
||||||
rm -f "$plugins_dir/iconengines/libqsvgicon.so"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 4. Remove bloat shared libraries (Recursively finds in lib/ and lib/PySide6/)
|
# 4. Remove bloat shared libraries (Recursively finds in lib/ and lib/PySide6/)
|
||||||
|
|||||||
Reference in New Issue
Block a user