-
Notifications
You must be signed in to change notification settings - Fork 26
/
eduactiv8.spec
74 lines (65 loc) · 2.42 KB
/
eduactiv8.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
# -*- mode: python -*-
import sys
p = sys.platform
block_cipher = None
# hiddenimports=["_io", "pyimod03_importers", "colorsys", "_struct", "struct"],
a = Analysis(['eduactiv8.py'],
pathex=['/Users/cextested/Documents/eduActiv8/eduActiv8-3.70.823/dist/eduActiv8'],
binaries=[],
datas = [("CHANGES.txt", "."), ("CREDITS.txt", "."), ("LICENSE", "."), ("README.txt", "."), ("xml", "xml"),
("locale", "locale"), ("res", "res"), ("classes", "classes"), ("game_boards", "game_boards"), ("i18n","i18n")],
hiddenimports=["_io", "pyimod03_importers", "colorsys", "_struct", "struct", "sqlite3", "json", "ast", "xml.etree.ElementTree"],
hookspath=[],
runtime_hooks=[],
excludes=["numpy", "scipy", 'matplotlib','PIL','cython','zmq'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
if p == "linux" or p == "linux2":
print("Building for Linux")
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='eduActiv8',
debug=False,
strip=False,
upx=True,
console=True,
icon='res/icon/eduactiv8.ico')
elif p == "win32" or p == "cygwin":
print("Building for Windows")
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='eduActiv8',
debug=False,
strip=False,
upx=True,
console=False,
icon='res\icon\eduactiv8.ico')
elif p == "darwin":
print("Building for Mac OS")
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='eduActiv8',
debug=False,
strip=False,
upx=True,
console=False,
icon='res/icon/eduactiv8.icns')
app = BUNDLE(exe,
name='eduActiv8.app',
icon='res/icon/eduactiv8.icns',
info_plist={
'NSHighResolutionCapable': 'True'
},
bundle_identifier="org.eduactiv8.eduactiv8")
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='eduActiv8')