chore(build): drop multimedia dependency from appimage untill we use sounds on theme
Some checks failed
Code and build check / Check code (push) Successful in 1m38s
Code and build check / Build with uv (push) Has been cancelled

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-07-16 16:02:12 +05:00
parent 45a18bd1d1
commit e7ac37d792

View File

@ -11,7 +11,7 @@ script:
# 4) Копируем всё из .venv в AppDir # 4) Копируем всё из .venv в AppDir
- cp -r .venv/lib/python3.10/site-packages/* AppDir/usr/local/lib/python3.10/dist-packages - cp -r .venv/lib/python3.10/site-packages/* AppDir/usr/local/lib/python3.10/dist-packages
- cp -r share AppDir/usr - cp -r share AppDir/usr
# 5) Удаляем __pycache__ файлы # 5) Удаляем pycache файлы
- find AppDir -name "__pycache__" -type d -exec rm -rf {} + || true - find AppDir -name "__pycache__" -type d -exec rm -rf {} + || true
# 6) Удаляем тестовые файлы и документацию # 6) Удаляем тестовые файлы и документацию
- find AppDir -path "*/test*" -type d -exec rm -rf {} + || true - find AppDir -path "*/test*" -type d -exec rm -rf {} + || true
@ -30,10 +30,10 @@ script:
# 7) Чистим от ненужных модулей и бинарников # 7) Чистим от ненужных модулей и бинарников
- rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/qml/ - 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/{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 - 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: AppDir:
path: ./AppDir path: ./AppDir
@ -52,7 +52,7 @@ AppDir:
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c'
include: include:
- python3 - python3-minimal
- python3-pkg-resources - python3-pkg-resources
- libopengl0 - libopengl0
- libk5crypto3 - libk5crypto3
@ -61,12 +61,7 @@ AppDir:
- libxcb-cursor0 - libxcb-cursor0
- libimage-exiftool-perl - libimage-exiftool-perl
- xdg-utils - xdg-utils
- libgstreamer1.0-0
- libgstreamer-plugins-base1.0-0
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-libav
- libpulse0
exclude: exclude:
- man-db - man-db
- manpages - manpages
@ -84,7 +79,6 @@ AppDir:
# Применяем strip к бинарникам и библиотекам для уменьшения размера # Применяем strip к бинарникам и библиотекам для уменьшения размера
- find AppDir -type f -name "*.so*" -exec strip --strip-all {} \; 2>/dev/null || true - 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 f -executable -exec strip --strip-unneeded {} \; 2>/dev/null || true
# Удаляем пустые папки # Удаляем пустые папки
- find AppDir -type d -empty -delete || true - find AppDir -type d -empty -delete || true