mirror of
https://github.com/mistralai/mistral-vibe
synced 2026-04-25 17:14:55 +02:00
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Gauthier Guinet <43207538+Gguinet@users.noreply.github.com> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Quentin <torroba.q@gmail.com> Co-authored-by: Simon <80467011+sorgfresser@users.noreply.github.com> Co-authored-by: Simon Van de Kerckhove <simon.vandekerckhove@mistral.ai> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: angelapopopo <angele.lenglemetz@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
71 lines
2.1 KiB
Python
71 lines
2.1 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
# Onedir build for vibe-acp — no per-launch extraction overhead.
|
|
# Build: uv run --group build pyinstaller vibe-acp.spec
|
|
# Output: dist/vibe-acp-dir/vibe-acp (+ dist/vibe-acp-dir/_internal/)
|
|
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
# Collect all dependencies (including hidden imports and binaries) from builtins modules
|
|
core_builtins_deps = collect_all('vibe.core.tools.builtins')
|
|
acp_builtins_deps = collect_all('vibe.acp.tools.builtins')
|
|
|
|
# Extract hidden imports and binaries, filtering to ensure only strings are in hiddenimports
|
|
hidden_imports = ["truststore"]
|
|
for item in core_builtins_deps[2] + acp_builtins_deps[2]:
|
|
if isinstance(item, str):
|
|
hidden_imports.append(item)
|
|
|
|
binaries = core_builtins_deps[1] + acp_builtins_deps[1]
|
|
|
|
a = Analysis(
|
|
['vibe/acp/entrypoint.py'],
|
|
pathex=[],
|
|
binaries=binaries,
|
|
datas=[
|
|
# By default, pyinstaller doesn't include the .md files
|
|
('vibe/core/prompts/*.md', 'vibe/core/prompts'),
|
|
('vibe/core/tools/builtins/prompts/*.md', 'vibe/core/tools/builtins/prompts'),
|
|
# We also need to add all setup files
|
|
('vibe/setup/*', 'vibe/setup'),
|
|
# This is necessary because tools are dynamically called in vibe, meaning there is no static reference to those files
|
|
('vibe/core/tools/builtins/*.py', 'vibe/core/tools/builtins'),
|
|
('vibe/acp/tools/builtins/*.py', 'vibe/acp/tools/builtins'),
|
|
],
|
|
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,
|
|
[],
|
|
name='vibe-acp',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
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.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='vibe-acp-dir',
|
|
)
|