From a25087320528a37982cab66966c21cb2dd599706 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 18 Jul 2025 00:29:20 +0500 Subject: [PATCH] fix(build): replace Appdir with TARGET_APPDIR on appimage Signed-off-by: Boris Yumankulov --- build-aux/AppImageBuilder.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/build-aux/AppImageBuilder.yml b/build-aux/AppImageBuilder.yml index 97e46f1..8c483e1 100644 --- a/build-aux/AppImageBuilder.yml +++ b/build-aux/AppImageBuilder.yml @@ -22,13 +22,20 @@ AppDir: path: ./AppDir after_bundle: # Документация, справка, примеры - - rm -rf AppDir/usr/share/{man,doc,info,help,gtk-doc,devhelp,examples,pkgconfig} || true - - rm -rf AppDir/usr/include || true - - rm -rf AppDir/usr/lib/pkgconfig || true + - rm -rf ${TARGET_APPDIR}/usr/share/man || true + - rm -rf ${TARGET_APPDIR}/usr/share/doc || 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/include || true + - rm -rf ${TARGET_APPDIR}/usr/lib/pkgconfig || true # Статика и отладка - - find AppDir -type f \( -name '*.a' -o -name '*.la' -o -name '*.h' -o -name '*.cmake' -o -name '*.pdb' \) -delete || 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 AppDir -type f -executable -exec file {} \; | grep ELF | cut -d: -f1 | xargs strip --strip-unneeded || true + - find ${TARGET_APPDIR} -type f -executable -exec file {} \; | grep ELF | cut -d: -f1 | xargs strip --strip-unneeded || true app_info: id: ru.linux_gaming.PortProtonQt name: PortProtonQt