-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_binary.sh
More file actions
executable file
·44 lines (41 loc) · 1.37 KB
/
build_binary.sh
File metadata and controls
executable file
·44 lines (41 loc) · 1.37 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
#!/bin/bash
echo "Building Assembly Engine Binary with MLX support..."
# Clean previous builds
rm -rf build dist
rm -f assembly-engine.spec
# PyInstaller Build Command with comprehensive MLX bundling
venv/bin/pyinstaller --noconfirm --onefile --console \
--name "assembly-engine" \
--collect-all mlx \
--collect-all mlx_lm \
--collect-all mlx.core \
--collect-all tree_sitter \
--collect-all tree_sitter_python \
--collect-binaries mlx \
--collect-binaries mlx_lm \
--hidden-import="mlx" \
--hidden-import="mlx.core" \
--hidden-import="mlx.nn" \
--hidden-import="mlx_lm" \
--hidden-import="mlx_lm.models" \
--hidden-import="mlx_lm.utils" \
--hidden-import="tree_sitter" \
--hidden-import="tree_sitter_python" \
--hidden-import="pydantic" \
--hidden-import="pydantic.fields" \
--hidden-import="pydantic.main" \
--hidden-import="rich" \
--hidden-import="rich.console" \
--hidden-import="rich.panel" \
--hidden-import="rich.syntax" \
--hidden-import="rich.markdown" \
--hidden-import="rich.prompt" \
--hidden-import="rich.spinner" \
--hidden-import="rich.live" \
--hidden-import="transformers" \
--hidden-import="huggingface_hub" \
--paths="src" \
src/main.py
echo "Build complete. Binary is in dist/assembly-engine"
echo "Testing binary..."
./dist/assembly-engine <<< "exit"