-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_exe.spec
59 lines (55 loc) · 1.73 KB
/
make_exe.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
from kivymd import hooks_path as kivymd_hooks_path
from kivy_deps import sdl2, glew
from PyInstaller.building.build_main import *
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
import sys
import os
path = os.path.abspath(".")
hiddenimports = collect_submodules('mediapipe')
datas = collect_data_files('mediapipe', subdir=None, include_py_files=True)
a = Analysis(
["main.py"],
pathex=[path],
binaries=[],
datas=datas+[("main.py", "."), ("*.kv", "."), ("assets\\", "assets\\"), ("widgets\\*.py", "widgets\\"), ("screens\\*.py",
"screens\\"), ("utils\\", "utils\\"), ("handtracking\\*.py", "handtracking\\")],
hiddenimports=hiddenimports+['pygrabber.dshow_graph','plyer'
],
hookspath=[kivymd_hooks_path],
runtime_hooks=[],
excludes=['mediapipe.examples',
"pandas",
"jedi",
"scipy",
"PIL",
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
a.binaries = a.binaries - \
TOC([('opencv_world3410.dll', None, None),
('cv2\\opencv_videoio_ffmpeg430_64.dll', None, None),
('mfc140u.dll',None,None),
])
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
debug=False,
strip=False,
upx=True,
name="Virtual Music",
icon='assets/icons/app_icon.ico',
console=False,
)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='Virtual Music')