From 7116cbc759e200753e9c4df335c2edb54854480a Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Sat, 26 Jul 2025 15:54:40 -0300 Subject: [PATCH] linux/appimage: recursively remove ELF debug symbols This reduces the AppImage's AppDir from 100,5 MiB to 90,3 MiB. --- appimage/AppImageBuilder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appimage/AppImageBuilder.yml b/appimage/AppImageBuilder.yml index 4dabf93..2b555b3 100644 --- a/appimage/AppImageBuilder.yml +++ b/appimage/AppImageBuilder.yml @@ -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 10 MB 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