chore(build): drop multimedia dependency from appimage untill we use sounds on theme
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -11,7 +11,7 @@ script:
|
||||
# 4) Копируем всё из .venv в AppDir
|
||||
- cp -r .venv/lib/python3.10/site-packages/* AppDir/usr/local/lib/python3.10/dist-packages
|
||||
- cp -r share AppDir/usr
|
||||
# 5) Удаляем __pycache__ файлы
|
||||
# 5) Удаляем pycache файлы
|
||||
- find AppDir -name "__pycache__" -type d -exec rm -rf {} + || true
|
||||
# 6) Удаляем тестовые файлы и документацию
|
||||
- find AppDir -path "*/test*" -type d -exec rm -rf {} + || true
|
||||
@ -30,10 +30,10 @@ script:
|
||||
# 7) Чистим от ненужных модулей и бинарников
|
||||
- rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/qml/
|
||||
- rm -f AppDir/usr/local/lib/python3.10/dist-packages/PySide6/{assistant,designer,linguist,lrelease,lupdate}
|
||||
- rm -f AppDir/usr/local/lib/python3.10/dist-packages/PySide6/{Qt3D*,QtBluetooth*,QtCharts*,QtConcurrent*,QtDataVisualization*,QtDesigner*,QtHelp*,QtMultimedia*,QtNetwork*,QtOpenGL*,QtPositioning*,QtPrintSupport*,QtQml*,QtQuick*,QtRemoteObjects*,QtScxml*,QtSensors*,QtSerialPort*,QtSql*,QtStateMachine*,QtTest*,QtWeb*,QtXml*,QtMultimedia*}
|
||||
# 8) Удаляем все модули и библиотеки Qt кроме QtCore, QtGui, QtMultimedia, QtSvg, QtWidgets
|
||||
- shopt -s extglob
|
||||
- rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/lib/!(libQt6Core*|libQt6Gui*|libQt6Widgets*|libQt6OpenGL*|libQt6XcbQpa*|libQt6Wayland*|libQt6Egl*|libicudata*|libicuuc*|libicui18n*|libQt6DBus*|libQt6Svg*|libQt6Qml*|libQt6Network*|libQt6Multimedia*)
|
||||
|
||||
- rm -f AppDir/usr/local/lib/python3.10/dist-packages/PySide6/!(QtCore*|QtGui*|QtMultimedia*|QtSvg*|QtWidgets*)
|
||||
- rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/lib/!(libQt6Core*|libQt6Gui*|libQt6Widgets*|libQt6Svg*|libQt6Multimedia*|libQt6XcbQpa*|libQt6Wayland*|libQt6Egl*|libicudata*|libicuuc*|libicui18n*)
|
||||
AppDir:
|
||||
path: ./AppDir
|
||||
|
||||
@ -52,7 +52,7 @@ AppDir:
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c'
|
||||
|
||||
include:
|
||||
- python3
|
||||
- python3-minimal
|
||||
- python3-pkg-resources
|
||||
- libopengl0
|
||||
- libk5crypto3
|
||||
@ -61,12 +61,7 @@ AppDir:
|
||||
- libxcb-cursor0
|
||||
- libimage-exiftool-perl
|
||||
- xdg-utils
|
||||
- libgstreamer1.0-0
|
||||
- libgstreamer-plugins-base1.0-0
|
||||
- gstreamer1.0-plugins-base
|
||||
- gstreamer1.0-plugins-good
|
||||
- gstreamer1.0-libav
|
||||
- libpulse0
|
||||
|
||||
exclude:
|
||||
- man-db
|
||||
- manpages
|
||||
@ -84,7 +79,6 @@ AppDir:
|
||||
# Применяем strip к бинарникам и библиотекам для уменьшения размера
|
||||
- find AppDir -type f -name "*.so*" -exec strip --strip-all {} \; 2>/dev/null || true
|
||||
- find AppDir -type f -executable -exec strip --strip-unneeded {} \; 2>/dev/null || true
|
||||
|
||||
# Удаляем пустые папки
|
||||
- find AppDir -type d -empty -delete || true
|
||||
|
||||
|
Reference in New Issue
Block a user