-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyinstaller.spec
33 lines (32 loc) · 1.1 KB
/
pyinstaller.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
# -*- mode: python -*-
import cbapi
import os
cbapi_base_dir = os.path.dirname(cbapi.__file__)
a = Analysis(['src/fletch.py'],
datas=[
(os.path.join(cbapi_base_dir, 'response', 'models'), 'cbapi/response/models'),
(os.path.join(cbapi_base_dir, 'protection', 'models'), 'cbapi/protection/models'),
(os.path.join(cbapi_base_dir, 'defense', 'models'), 'cbapi/defense/models'),
('src/statics', 'src/statics')
],
pathex=['src'],
hiddenimports=['unicodedata', 'xml.etree', 'xml.etree.ElementTree', "HTMLParser"],
hookspath=None,
runtime_hooks=None)
print(a.datas)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='cb-response-bigfix-connector',
debug=False,
strip=None,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
name='cb-response-bigfix-connector')