-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDnDTools.spec
More file actions
85 lines (80 loc) · 2.06 KB
/
DnDTools.spec
File metadata and controls
85 lines (80 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_submodules
a = Analysis(
['UI\\app.py'],
pathex=[],
binaries=[],
datas=[('UI\\networking\\protos', 'networking/protos'), ('UI\\templates', 'templates'), ('UI\\static', 'static'), ('build\\assets_no_icons', 'assets')],
hiddenimports=[
'asyncio.events',
'asyncio.windows_events',
'asyncio.windows_utils',
] + collect_submodules('pyshark'),
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
# --- unused stdlib modules ---
# NOTE: tkinter/_tkinter kept — required by PyInstaller Splash
'test',
'xmlrpc',
'pydoc', 'pydoc_data',
'lib2to3', 'ensurepip', 'venv',
'idlelib', 'turtledemo', 'turtle',
'curses',
'multiprocessing.popen_spawn_posix',
'multiprocessing.popen_fork',
'multiprocessing.popen_forkserver',
# --- heavy packages not used at runtime ---
'scipy',
'matplotlib',
'IPython', 'notebook', 'jupyter',
'pandas',
# --- numpy test / f2py bloat ---
'numpy.f2py', 'numpy.testing', 'numpy.distutils',
# --- sklearn test bloat ---
'sklearn.tests', 'sklearn.datasets',
# --- Pillow unused codecs ---
'PIL.ImageTk',
],
noarchive=False,
optimize=2,
)
pyz = PYZ(a.pure)
splash = Splash(
'UI\\assets\\banner.jpg',
binaries=a.binaries,
datas=a.datas,
text_pos=None,
minify_script=True,
always_on_top=True,
)
exe = EXE(
pyz,
a.scripts,
splash,
[],
exclude_binaries=True,
name='DnDTools',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['UI\\assets\\logo.ico'],
)
coll = COLLECT(
exe,
a.binaries,
splash.binaries,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name='DnDTools',
)