From 4ea171986b8de5b90dfca66db260a8b7103ef43f Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 17:36:08 -0500 Subject: [PATCH] Switch to --onedir for faster startup on Windows --- booru-viewer.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/booru-viewer.spec b/booru-viewer.spec index 7865624..cf4cdb9 100644 --- a/booru-viewer.spec +++ b/booru-viewer.spec @@ -42,18 +42,26 @@ pyz = PYZ(a.pure, cipher=block_cipher) exe = EXE( pyz, a.scripts, - a.binaries, - a.datas, [], + exclude_binaries=True, name='booru-viewer', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], - runtime_tmpdir=None, console=False, disable_windowed_traceback=False, argv_emulation=False, icon='icon.ico', ) + +coll = COLLECT( + exe, + a.binaries, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='booru-viewer', +)