unsloth/build.sh
Roland Tannous 2b04c0da40 add build.sh
2026-03-12 20:52:42 +00:00

20 lines
364 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# 1. Build frontend (Vite outputs to dist/)
cd studio/frontend
npm install
npm run build # outputs to studio/frontend/dist/
cd ../..
# 2. Clean old artifacts
rm -rf build dist *.egg-info
# 3. Build wheel
python -m build
# 4. Optionally publish
if [ "${1:-}" = "publish" ]; then
python -m twine upload dist/*
fi