linux/appimage: recursively remove ELF debug symbols

This reduces the AppImage's AppDir from 100,5 MiB to 90,3 MiB.
This commit is contained in:
guihkx
2025-07-26 15:54:40 -03:00
committed by DevilXD
parent 42e7e88f30
commit 7116cbc759

View File

@@ -30,6 +30,9 @@ script:
# Generate byte-code files and package them for a slightly faster app startup.
- python3 -m compileall "$TARGET_APPDIR/usr/src/"*.py
# Recursively remove ELF debug symbols, trimming roughly 10MB off the AppDir.
- find "$TARGET_APPDIR" -type f -print0 | xargs -0 file | grep -F 'not stripped' | cut -f1 -d':' | sort -V | xargs -r strip -s -v
AppDir:
app_info:
id: io.github.devilxd.twitchdropsminer