forked from mistralai/mistral-vibe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvibe-app-server.spec
More file actions
79 lines (71 loc) · 2.19 KB
/
Copy pathvibe-app-server.spec
File metadata and controls
79 lines (71 loc) · 2.19 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
# -*- mode: python ; coding: utf-8 -*-
# Onedir build for vibe-app-server — no per-launch extraction overhead.
# Build: uv run --group build pyinstaller vibe-app-server.spec
# Output: dist/vibe-app-server-dir/vibe-app-server (+ dist/vibe-app-server-dir/_internal/)
# UPX stays off: it rewrites the Mach-O header and invalidates the macOS code signature.
from PyInstaller.utils.hooks import collect_all, collect_data_files, collect_submodules
_core_builtins_datas, core_builtins_binaries, core_builtins_hidden_imports = (
collect_all("vibe.core.tools.builtins")
)
# rich lazily loads Unicode width tables via importlib.import_module() at runtime,
# which PyInstaller's static analysis cannot discover.
hidden_imports = ["truststore"] + collect_submodules("rich._unicode_data")
for item in core_builtins_hidden_imports:
if isinstance(item, str):
hidden_imports.append(item)
binaries = core_builtins_binaries
datas = collect_data_files(
"vibe",
includes=[
"core/prompts/*.md",
"core/tools/builtins/prompts/*.md",
],
)
datas += [("vibe/core/tools/builtins/*.py", "vibe/core/tools/builtins")]
# Built-in skills are read from source files at runtime, so collect_data_files
# must be allowed to include .py files here. By default it filters .py/.pyc out.
datas += collect_data_files(
"vibe.core.skills.builtins", includes=["*.py"], include_py_files=True
)
a = Analysis(
["vibe/app_server/entrypoint.py"],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=hidden_imports,
hookspath=[],
hooksconfig={},
runtime_hooks=["pyinstaller/runtime_hook_truststore.py"],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="vibe-app-server",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
upx_exclude=[],
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name="vibe-app-server-dir",
)