From a4ae30b72e5352db32a29783aa6ad648d398925a Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 18 Jul 2025 15:13:37 +0500 Subject: [PATCH] fix(build): fix appimage strip Signed-off-by: Boris Yumankulov --- build-aux/AppImageBuilder.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build-aux/AppImageBuilder.yml b/build-aux/AppImageBuilder.yml index 29eead9..2c221a7 100644 --- a/build-aux/AppImageBuilder.yml +++ b/build-aux/AppImageBuilder.yml @@ -22,18 +22,25 @@ AppDir: # Документация, справка, примеры - rm -rf $TARGET_APPDIR/usr/share/man || true - rm -rf $TARGET_APPDIR/usr/share/doc || true + - rm -rf $TARGET_APPDIR/usr/share/doc-base || true - rm -rf $TARGET_APPDIR/usr/share/info || true - rm -rf $TARGET_APPDIR/usr/share/help || true - rm -rf $TARGET_APPDIR/usr/share/gtk-doc || true - rm -rf $TARGET_APPDIR/usr/share/devhelp || true - rm -rf $TARGET_APPDIR/usr/share/examples || true - rm -rf $TARGET_APPDIR/usr/share/pkgconfig || true + - rm -rf $TARGET_APPDIR/usr/share/bash-completion || true + - rm -rf $TARGET_APPDIR/usr/share/pixmaps || true + - rm -rf $TARGET_APPDIR/usr/share/mime || true + - rm -rf $TARGET_APPDIR/usr/share/metainfo || true - rm -rf $TARGET_APPDIR/usr/include || true - rm -rf $TARGET_APPDIR/usr/lib/pkgconfig || true # Статика и отладка - find $TARGET_APPDIR -type f \( -name '*.a' -o -name '*.la' -o -name '*.h' -o -name '*.cmake' -o -name '*.pdb' \) -delete || true - # Strip ELF бинарников - - "find $TARGET_APPDIR -type f -executable -exec file {} \\; | grep ELF | cut -d: -f1 | xargs strip --strip-unneeded || true" + # Strip ELF бинарников (исключая Python extensions) + - "find $TARGET_APPDIR -type f -executable -exec file {} \\; | grep ELF | grep -v '/dist-packages/' | grep -v '/site-packages/' | cut -d: -f1 | xargs strip --strip-unneeded || true" + # Удаление пустых папок + - find $TARGET_APPDIR -type d -empty -delete || true app_info: id: ru.linux_gaming.PortProtonQt name: PortProtonQt