Skip to content

Commit

Permalink
Generate both standalone EXE and a folder with files
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Sep 18, 2019
1 parent 311e871 commit a49ca07
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion blockcheck.spec
Expand Up @@ -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)
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a49ca07

Please sign in to comment.