From 426c856aa702b3dbdc3b3abbf58252de629a00e9 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Sat, 31 Dec 2022 13:03:01 -0300 Subject: [PATCH] Exclude system libraries --- standalone.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/standalone.spec b/standalone.spec index 73f986f..556d4e4 100644 --- a/standalone.spec +++ b/standalone.spec @@ -19,7 +19,9 @@ a = Analysis(['standalone.py'], win_private_assemblies=False, cipher=block_cipher, noarchive=False) -a.binaries = [x for x in a.binaries if not os.path.dirname(x[1]).startswith("C:\\Program Files")] +a.binaries = [x for x in a.binaries + if not os.path.dirname(x[1]).startswith("C:\\Program Files") + and not os.path.dirname(x[1]).startswith("C:\\Windows\\system32")] a.datas += Tree('cdn', prefix='cdn') pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)