-
Notifications
You must be signed in to change notification settings - Fork 2
/
galaxymsbt.spec
101 lines (93 loc) · 2.95 KB
/
galaxymsbt.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
95
96
97
98
99
100
101
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['galaxymsbt.py'],
pathex=['./venv/Lib/site-packages'],
binaries=[],
datas=[
('assets/dialog_intvar.ui', 'assets'),
('assets/dialog_picture.ui', 'assets'),
('assets/dialog_ruby.ui', 'assets'),
('assets/dialog_stringvar.ui', 'assets'),
('assets/dialog_text.ui', 'assets'),
('assets/editor.ui', 'assets'),
('assets/icon.ico', 'assets'),
('assets/tag_delay.png', 'assets'),
('assets/tag_format_number.png', 'assets'),
('assets/tag_format_string.png', 'assets'),
('assets/tag_number_font.png', 'assets'),
('assets/tag_page_break.png', 'assets'),
('assets/tag_page_center.png', 'assets'),
('assets/tag_page_offset.png', 'assets'),
('assets/tag_picture.png', 'assets'),
('assets/tag_player.png', 'assets'),
('assets/tag_race_time.png', 'assets'),
('assets/tag_reset_color.png', 'assets'),
('assets/tag_ruby.png', 'assets'),
('assets/tag_sound.png', 'assets'),
('assets/tag_text_color.png', 'assets'),
('assets/tag_text_size.png', 'assets'),
('assets/tool_msb_add.png', 'assets'),
('assets/tool_msb_delete.png', 'assets'),
('assets/tool_message_add.png', 'assets'),
('assets/tool_message_delete.png', 'assets'),
('assets/tool_message_duplicate.png', 'assets'),
('assets/tool_message_sort.png', 'assets'),
('assets/tool_flow_add.png', 'assets'),
('assets/tool_flow_remove.png', 'assets'),
('assets/tool_flow_duplicate.png', 'assets'),
],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
# https://stackoverflow.com/questions/58097858/how-to-exclude-opengl32sw-dll-from-pyqt5-library-when-using-pyinstaller
to_keep = []
to_exclude = {
"Qt5Qml.dll",
"Qt5QmlModels.dll",
"Qt5WebSockets.dll",
"Qt5Network.dll",
"Qt5Quick.dll",
"Qt5Svg.dll",
"Qt5DBus.dll",
"opengl32sw.dll",
"d3dcompiler_47.dll",
}
# Iterate through the list of included binaries.
for (dest, source, kind) in a.binaries:
# Skip anything we don't need.
if os.path.split(dest)[1] in to_exclude:
continue
to_keep.append((dest, source, kind))
# Replace list of data files with filtered one.
a.binaries = to_keep
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='galaxymsbt',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.ico',
)