Skip to content

Commit 9ec648e

Browse files
committed
build: scripts/build-brxt.sh produces codegraphagent.brxt
1 parent c82b9f6 commit 9ec648e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

scripts/build-brxt.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Build codegraphagent.brxt — a ZIP archive of the .brxt payload.
3+
#
4+
# Excludes:
5+
# - tests/ (not needed at runtime)
6+
# - engine/ (the engine is downloaded on first use, not bundled)
7+
# - .venv/, __pycache__, .pytest_cache, .git
8+
# - any prior codegraphagent.brxt
9+
10+
set -euo pipefail
11+
12+
cd "$(dirname "$0")/.."
13+
REPO_ROOT="$(pwd)"
14+
OUT="${REPO_ROOT}/codegraphagent.brxt"
15+
16+
rm -f "$OUT"
17+
18+
# zip preserves directory layout; we just include the files the .brxt format requires.
19+
zip -r "$OUT" \
20+
manifest.json \
21+
README.md \
22+
pyproject.toml \
23+
src/codegraphagent \
24+
-x '*/__pycache__/*' '*.pyc'
25+
26+
echo
27+
echo "Built: $OUT"
28+
ls -lh "$OUT"

0 commit comments

Comments
 (0)