-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRokuHandRemote.spec
More file actions
67 lines (60 loc) · 1.91 KB
/
RokuHandRemote.spec
File metadata and controls
67 lines (60 loc) · 1.91 KB
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
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['rokuRemote.py'],
pathex=[],
binaries=[],
datas=[
# Include only necessary mediapipe runtime files
# For example, if you only need the 'hands' module:
(r'C:\ProgramData\anaconda3\envs\rokuRemoteEnv\Lib\site-packages\mediapipe\modules', 'mediapipe/modules'),
# Include additional Python files
('gestureDetection.py', '.'),
('tooltip.py', '.'), # Include if used
# Include images
('images/icon.ico', 'images'),
('images/tooltip-images', 'images/tooltip-images')
],
hiddenimports=[
'mediapipe.python._framework_bindings', # For mediapipe bindings
'mediapipe.python.solutions', # To include hands solution
'PIL._imagingtk', # For tkinter/Pillow
'PIL.Image', # Pillow
'cv2', # OpenCV
'numpy', # NumPy
'secrets'
# Include any other hidden imports required
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
],
noarchive=False,
optimize=0, # Optimize bytecode
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='HandiRokuRemote',
debug=False, # Disable debug logging in final builds
bootloader_ignore_signals=False,
strip=True, # Strip symbols to reduce size
upx=True, # Enable UPX compression
upx_exclude=[],
runtime_tmpdir=None,
console=False, # Hide console window
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='images/icon.ico'
)
# Explicitly set UPX directory if needed
import os
os.environ['UPX_DIR'] = r'C:\Tools\upx'