From 2b04c0da400d6450b0687ac78643f531ac83d306 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Thu, 12 Mar 2026 20:52:42 +0000 Subject: [PATCH] add build.sh --- build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000..4948a73ae4 --- /dev/null +++ b/build.sh @@ -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