From a49ca073d0af183729ee8fe80430687df82e7069 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Wed, 18 Sep 2019 18:56:01 +0300 Subject: [PATCH] Generate both standalone EXE and a folder with files --- blockcheck.spec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/blockcheck.spec b/blockcheck.spec index c79c60b..754ce51 100644 --- a/blockcheck.spec +++ b/blockcheck.spec @@ -33,7 +33,8 @@ a = Analysis(['blockcheck.py'], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, - cipher=block_cipher) + cipher=block_cipher, + noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) @@ -65,6 +66,25 @@ exe = EXE(pyz, upx=True, console=False ) +exe_folder = EXE(pyz, + a.scripts, + [], + name='blockcheck_folder', + exclude_binaries=True, + debug=False, + strip=False, + upx=True, + console=False ) + +coll = COLLECT(exe_folder, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='blockcheck') + if sys_os == 'darwin': app = BUNDLE(exe, name='blockcheck.app',