forked from Jman4190/nba-sql
-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.spec
54 lines (49 loc) · 1.54 KB
/
build.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
import os
import gooey
from PyInstaller.building.api import EXE, PYZ, COLLECT
from PyInstaller.building.build_main import Analysis
from PyInstaller.building.datastruct import Tree
from PyInstaller.building.osx import BUNDLE
gooey_root = os.path.dirname(gooey.__file__)
gooey_languages = Tree(os.path.join(gooey_root, 'languages'), prefix='gooey/languages')
gooey_images = Tree(os.path.join(gooey_root, 'images'), prefix='gooey/images')
block_cipher = None
# noinspection PyUnresolvedReferences
a = Analysis(['nba_sql.py'],
pathex=[os.path.abspath(SPECPATH)],
binaries=[],
datas=[],
hiddenimports=["Team"],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='nba-sql',
debug=False,
strip=False,
upx=True,
console=True)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
gooey_languages,
gooey_images,
strip=False,
upx=True,
name='nba-sql')
app = BUNDLE(coll,
name='nba-sql.exe',
icon=None,
bundle_identifier=None,
info_plist={
'NSHighResolutionCapable': 'True'
}
)