-
Notifications
You must be signed in to change notification settings - Fork 9
/
tesseractXplore.spec
109 lines (104 loc) · 3.04 KB
/
tesseractXplore.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from os.path import abspath
from kivy_deps import sdl2, angle
from kivymd import hooks_path as kivymd_hooks_path
from PyInstaller.compat import is_win, is_linux, is_darwin
PROJECT_NAME = 'tesseractXplore'
if is_win:
# Define platform-specific dependencies
binaries = []
hiddenimports = ['win32timezone']
kivy_bins = [Tree(p) for p in (sdl2.dep_bins + angle.dep_bins)]
a = Analysis(
[f'{PROJECT_NAME}\\app\\app.py'],
pathex=[abspath('.')],
binaries=binaries,
datas=[
('assets\\metadata\\*.yml' , 'assets\\metadata'),
('assets\\fonts\\*.ttf' , 'assets\\fonts'),
('assets\\*.png' , 'assets'),
('assets\\*.ico' , 'assets'),
('kv\\*.kv', 'kv'),
('venv\\Lib\\site-packages\\kivy_garden\\contextmenu\\*', 'kivy_garden\\contextmenu'),
('venv\\Lib\\site-packages\\kivy\\*', 'kivy'),
('venv\\Lib\\site-packages\\kivymd\\*', 'kivymd'),
],
hiddenimports=hiddenimports,
hookspath=[kivymd_hooks_path],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name=PROJECT_NAME,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
)
coll = COLLECT(
exe,
Tree(f'{PROJECT_NAME}\\'),
a.binaries,
a.zipfiles,
a.datas,
*kivy_bins,
name=PROJECT_NAME,
strip=False,
upx=True,
upx_exclude=[],
)
else:
# Define platform-specific dependencies
binaries = []
hiddenimports = []
a = Analysis(
[f'{PROJECT_NAME}/app/app.py'],
pathex=[abspath('.')],
binaries=binaries,
datas=[
('assets/metadata/*.yml' , 'assets/metadata'),
('assets/fonts/*.ttf' , 'assets/fonts'),
('assets/*.png' , 'assets'),
('assets/*.ico' , 'assets'),
('kv/*.kv', 'kv'),
('/venv/lib/python3.8/site-packages/kivy_garden/contextmenu/*', 'kivy_garden/contextmenu'),
('/venv/lib/python3.8/site-packages/kivy/*', 'kivy'),
],
hiddenimports=hiddenimports,
hookspath=[kivymd_hooks_path],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name=PROJECT_NAME,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
)
coll = COLLECT(
exe,
Tree(f'{PROJECT_NAME}/'),
a.binaries,
a.zipfiles,
a.datas,
name=PROJECT_NAME,
strip=False,
upx=True,
upx_exclude=[],
)