commit cd52350f5df1e650107a5ff2faa5336278606cfe parent 5afda62ee32b1a5d37ee4033b9f7ed8e8951e50c Author: Axel Gembe <derago@gmail.com> Date: Wed, 15 May 2019 19:04:42 +0200 AppImage: Remove unused PyQt5 modules We already delete unused Qt modules, but we weren't deleting their PyQt5 modules. ----- taken from Electron-Cash/Electron-Cash@e044c94677160b6e6bb1a981b22a4b85103de6cb Diffstat:
M | contrib/build-linux/appimage/build.sh | | | 11 | ++++------- |
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh @@ -180,13 +180,10 @@ rm -rf "$APPDIR"/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/translations/qtwebengine_locales rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/resources/qtwebengine_* rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/qml -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Web* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Designer* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Qml* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Quick* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Location* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Test* -rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Xml* +for component in Web Designer Qml Quick Location Test Xml ; do + rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5${component}* + rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt${component}* +done rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt.so