Repository navigation
Expand file tree
/
Copy pathModbusReader_debug.spec
More file actions
63 lines (58 loc) · 2.02 KB
/
Copy pathModbusReader_debug.spec
File metadata and controls
63 lines (58 loc) · 2.02 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
# -*- mode: python ; coding: utf-8 -*-
import os
import sys
from PyInstaller.utils.hooks import collect_submodules
sys.path.insert(0, os.path.abspath(SPECPATH))
from tools.version_resource import version_info # Explorer → Properties → Details
hiddenimports = ['openpyxl', 'PyQt6.QtSvg']
hiddenimports += collect_submodules('pyqtgraph')
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[('assets/app.png', 'assets'), ('assets/app.ico', 'assets'),
('LICENSE', '.'), ('THIRD_PARTY_LICENSES.md', '.'), # GPL: the licence travels with the program
('examples/demo.mbproj', 'examples'), # «Демо-проект» on the empty map
('examples/demo_en.mbproj', 'examples')], # …and its English twin
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
# Never used: the app draws with QPainter (pyqtgraph useOpenGL=False), so
# Qt's software OpenGL (20 MB) and its PDF engine only made the download and
# every install heavier.
_UNUSED = ('opengl32sw.dll', 'qt6pdf.dll', 'qpdf.dll')
a.binaries = [b for b in a.binaries if not any(u in b[0].lower() for u in _UNUSED)]
pyz = PYZ(a.pure)
# Start-up splash: a one-file exe unpacks for seconds before Python runs;
# this image is on screen from the first instant (main.py closes it).
splash = Splash('assets/splash.png', binaries=a.binaries, datas=a.datas,
text_pos=None, minify_script=True, always_on_top=False)
exe = EXE(
pyz,
a.scripts,
splash,
splash.binaries,
a.binaries,
a.datas,
[],
name='ModbusReader_debug',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/app.ico',
version=version_info('ModbusReader_debug.exe'),
)