-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyinstaller-windows.spec
94 lines (81 loc) · 2.75 KB
/
pyinstaller-windows.spec
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
86
87
88
89
90
91
92
93
94
# -*- mode: python -*-
import os
block_cipher = None
ui_tree = Tree('oPB/ui', prefix='oPB/ui', excludes=['*.qss', '*.py'])
# further information regarding Qt(WebEngine) deploy,
# see https://doc.qt.io/qt-5.10/qtwebengine-deploying.html
# http://doc.qt.io/qt-5/windows-deployment.html
files_tree = [('libEGL.dll', os.getenv("USERPROFILE") + '/Envs/oPB/Lib/site-packages/PyQt5/Qt/bin/libEGL.dll', 'DATA'),
('libGLESv2.dll', os.getenv("USERPROFILE") + '/Envs/oPB/Lib/site-packages/PyQt5/Qt/bin/libGLESv2.dll', 'DATA')]
help_tree = Tree('oPB/help', prefix='help')
qss_win_tree = [('ui/stylesheet.qss', 'oPB/ui/stylesheet.qss', 'DATA')]
a = Analysis(['opsipackagebuilder.py'],
pathex=['.'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
b = Analysis(['helpviewer.py'],
pathex=['.'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.dependencies,
exclude_binaries=True,
name='opsipackagebuilder',
debug=False,
strip=False,
upx=False,
console=True,
icon='images/prog_icons/opb/package_256x256.ico')
pyzb = PYZ(b.pure, b.zipped_data,
cipher=block_cipher)
exeb = EXE(pyzb,
b.scripts,
b.dependencies,
exclude_binaries=True,
name='helpviewer',
debug=False,
strip=False,
upx=False,
console=False,
icon='images/prog_icons/help/help.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
ui_tree,
files_tree,
help_tree,
[('ui/opsipackagebuilder_rc.py', 'oPB/ui/opsipackagebuilder_rc.py', 'DATA')],
qss_win_tree,
strip=False,
upx=False,
name='opsipackagebuilder')
collb = COLLECT(exeb,
b.binaries,
b.zipfiles,
b.datas,
ui_tree,
files_tree,
help_tree,
[('ui/opsipackagebuilder_rc.py', 'oPB/ui/opsipackagebuilder_rc.py', 'DATA')],
qss_win_tree,
strip=False,
upx=False,
name='helpviewer')