add build.sh
This commit is contained in:
parent
47654cb91c
commit
2b04c0da40
1 changed files with 20 additions and 0 deletions
20
build.sh
Normal file
20
build.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue