-
Notifications
You must be signed in to change notification settings - Fork 11
/
web2board.spec
51 lines (44 loc) · 1.52 KB
/
web2board.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
# -*- mode: python -*-
import os
import sys
import zipfile
sys.path.append(os.getcwd())
import libs.utils as utils
from libs.PathsManager import PathsManager
from Scripts import TestRunner
hidden_imports = ['libs.LoggingUtils', 'libs.WSCommunication.Hubs', 'UserList', 'UserString', 'ConfigParser']
hidden_imports = hidden_imports.extend(TestRunner.get_module_string('Test/**/test*.py'))
block_cipher = None
a = Analysis(['src' + os.sep + 'web2board.py'],
pathex=[os.getcwd()],
binaries=None,
datas=None,
hiddenimports=hidden_imports,
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
a.datas += utils.find_files_for_pyinstaller("platformio", ["*", "**/*"])
# // move by code because pyinstaller doesn't work very well
# a.datas += utils.find_files_for_pyinstaller("res", ["*", "**/*"])
# a.datas += utils.find_files_for_pyinstaller("Test/resources", ["*", "**/*"])
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='web2board',
debug=False,
strip=None,
upx=True,
console=True,
icon=PathsManager.RES_ICO_PATH)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='web2board')