From 605541ca97dda5c3914beea75960a56bb0d36046 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:17:25 -0300 Subject: [PATCH] linux/pyinstaller: exclude unneeded libraries Excluding these Linux libraries doesn't seem to cause any side-effects at runtime (they're also not present in the AppImage). And the benefit of this, is a reduction of 15 MiB in the final size of the Linux binary, which should also slightly reduce the app's startup time (but don't quote me on that). :) --- build.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.spec b/build.spec index e9d235fa..6806f977 100644 --- a/build.spec +++ b/build.spec @@ -76,6 +76,12 @@ a = Analysis( win_private_assemblies=False, win_no_prefer_redirects=False, ) +# Exclude unneeded Linux libraries +a.binaries = a.binaries - TOC([ + ('libicudata.so.66', None, None), + ('libicuuc.so.66', None, None), + ('librsvg-2.so.2', None, None), +]) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE( pyz,