-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdymo-code.spec
More file actions
169 lines (158 loc) · 3.91 KB
/
dymo-code.spec
File metadata and controls
169 lines (158 loc) · 3.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for Dymo Code
Builds standalone executables for Windows, macOS, and Linux
"""
import sys
from pathlib import Path
block_cipher = None
# Get the project root
project_root = Path(SPECPATH)
# Check for icon file and report status
icon_path = project_root / 'docs' / 'images' / 'icon.ico'
icon_exists = icon_path.exists()
print(f"[BUILD INFO] Project root: {project_root}")
print(f"[BUILD INFO] Icon path: {icon_path}")
print(f"[BUILD INFO] Icon exists: {icon_exists}")
if icon_exists:
print(f"[BUILD INFO] Icon size: {icon_path.stat().st_size} bytes")
else:
print(f"[BUILD WARNING] Icon file not found! The executable will have no icon.")
# Get certifi certificate path for SSL support
try:
import certifi
certifi_path = (certifi.where(), 'certifi')
except ImportError:
certifi_path = None
# Data files to include
datas = [
# Include version.json for update checking
(str(project_root / 'static-api'), 'static-api'),
# Include logo image for documentation
(str(project_root / 'docs' / 'images' / 'logo.png'), 'docs/images'),
# Include default ignore patterns
(str(project_root / '.dmcodeignore'), '.'),
]
# Add certifi certificates if available
if certifi_path:
datas.append(certifi_path)
# Hidden imports that PyInstaller might miss
hiddenimports = [
'groq',
'openai',
'anthropic',
'httpx',
'dotenv',
'rich',
'rich.console',
'rich.table',
'rich.panel',
'rich.text',
'rich.box',
'rich.markdown',
'rich.syntax',
'rich.progress',
'rich.spinner',
'rich.live',
'prompt_toolkit',
'prompt_toolkit.shortcuts',
'prompt_toolkit.history',
'prompt_toolkit.auto_suggest',
'prompt_toolkit.completion',
'questionary',
'sqlite3',
'json',
'threading',
'urllib.request',
'urllib.error',
'ssl',
'certifi',
# Include all src modules
'src',
'src.main',
'src.agent',
'src.agents',
'src.clients',
'src.command_handler',
'src.commands',
'src.config',
'src.history',
'src.memory',
'src.mcp',
'src.queue_manager',
'src.storage',
'src.terminal_ui',
'src.ui',
'src.tools',
'src.logger',
'src.name_detector',
'src.interactive_input',
'src.async_input',
'src.context_manager',
'src.utils',
'src.utils.basics',
'src.ignore_patterns',
'src.prompt_enhancer',
# Cloudscraper bypass modules
'src.utils.bypasses',
'src.utils.bypasses.cloudscraper',
'src.utils.bypasses.cloudscraper.main',
'src.utils.bypasses.cloudscraper.exceptions',
'src.utils.bypasses.cloudscraper.user_agent',
'src.utils.bypasses.cloudscraper.interpreters',
'src.utils.bypasses.cloudscraper.captcha',
# Cloudscraper dependencies
'requests',
'requests.adapters',
'requests.sessions',
'requests_toolbelt',
'requests_toolbelt.utils',
'requests_toolbelt.utils.dump',
'brotli',
]
a = Analysis(
[str(project_root / 'src' / 'main.py')],
pathex=[str(project_root)],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'tkinter',
'matplotlib',
'numpy',
'pandas',
'scipy',
'PIL',
'cv2',
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='dymo-code',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=str(icon_path) if icon_exists else None,
)