-
Notifications
You must be signed in to change notification settings - Fork 11
/
web2board-linux.spec
45 lines (38 loc) · 1.24 KB
/
web2board-linux.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
# -*- 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.extend(TestRunner.get_module_string('Test/**/test*.py'))
print hidden_imports
print os.getcwd()
block_cipher = None
a = Analysis(['src' + os.sep + 'web2board.py'],
pathex=[os.getcwd()],
hiddenimports=hidden_imports,
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
a.datas += utils.find_files_for_pyinstaller("platformio", ["*", "**/*"])
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')