summaryrefslogtreecommitdiff
path: root/main.spec
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-05-18 14:21:51 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-05-18 14:21:51 -0600
commit32a156dfde22f03c9ed2117909689cd99690efa9 (patch)
treebcd52468be152bd4648e394408243c6294534d4d /main.spec
parent19abc994ac0468b26965f5348750f9d82fcdd1d3 (diff)
fix sv-ttk
Diffstat (limited to 'main.spec')
-rw-r--r--main.spec22
1 files changed, 16 insertions, 6 deletions
diff --git a/main.spec b/main.spec
index 923b84d..ab14294 100644
--- a/main.spec
+++ b/main.spec
@@ -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',
+)