-
Notifications
You must be signed in to change notification settings - Fork 0
/
ephys_link.spec
75 lines (69 loc) · 1.89 KB
/
ephys_link.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
# -*- mode: python ; coding: utf-8 -*-
from ephys_link.__about__ import __version__ as version
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument("-d", "--dir", action="store_true", help="Outputs a directory")
options = parser.parse_args()
FILE_NAME = f"EphysLink-v{version}"
# noinspection PyUnresolvedReferences
a = Analysis(
['src\\ephys_link\\__main__.py'],
pathex=[],
binaries=[('src\\ephys_link\\resources', 'ephys_link\\resources')],
datas=[],
hiddenimports=['engineio.async_drivers.aiohttp'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=1,
)
# noinspection PyUnresolvedReferences
pyz = PYZ(a.pure)
if options.dir:
# noinspection PyUnresolvedReferences
exe = EXE(
pyz,
a.scripts,
[],
exlude_binaries=True,
name=FILE_NAME,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets\\icon.ico',
)
# noinspection PyUnresolvedReferences
coll = COLLECT(exe, a.binaries, a.datas, strip=False, upx=True, upx_exclude=[], name=FILE_NAME)
else:
# noinspection PyUnresolvedReferences
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name=FILE_NAME,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets\\icon.ico',
)