diff options
Diffstat (limited to 'main.spec')
-rw-r--r-- | main.spec | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -1,4 +1,8 @@ # -*- mode: python ; coding: utf-8 -*- +from PyInstaller.utils.hooks import collect_data_files + +datas = [('assets', 'assets')] +datas += collect_data_files('sv_ttk') block_cipher = None @@ -8,7 +12,7 @@ a = Analysis( ['main.py'], pathex=[], binaries=[], - datas=[('assets', 'assets')], + datas=datas, hiddenimports=[], hookspath=[], hooksconfig={}, @@ -24,17 +28,13 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE( pyz, a.scripts, - a.binaries, - a.zipfiles, - a.datas, [], + exclude_binaries=True, name='main', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, - upx_exclude=[], - runtime_tmpdir=None, console=True, disable_windowed_traceback=False, argv_emulation=False, @@ -42,3 +42,13 @@ exe = EXE( codesign_identity=None, entitlements_file=None, ) +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='main', +) |