fix(build): replace Appdir with TARGET_APPDIR on appimage
Some checks failed
Code and build check / Check code (push) Has been cancelled
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-18 00:29:20 +05:00
parent 850c8c0aa4
commit a250873205

View File

@ -22,13 +22,20 @@ AppDir:
path: ./AppDir path: ./AppDir
after_bundle: after_bundle:
# Документация, справка, примеры # Документация, справка, примеры
- rm -rf AppDir/usr/share/{man,doc,info,help,gtk-doc,devhelp,examples,pkgconfig} || true - rm -rf ${TARGET_APPDIR}/usr/share/man || true
- rm -rf AppDir/usr/include || true - rm -rf ${TARGET_APPDIR}/usr/share/doc || true
- rm -rf AppDir/usr/lib/pkgconfig || 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 бинарников # 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: app_info:
id: ru.linux_gaming.PortProtonQt id: ru.linux_gaming.PortProtonQt
name: PortProtonQt name: PortProtonQt