File size: 539 Bytes
8d3471e | 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 | #!/bin/bash
# WebUI ζε»Ίθζ¬
# η¨ζ³: ./scripts/build-webui.sh
set -e
echo "π¨ Building WebUI..."
cd "$(dirname "$0")/../webui"
# ζ£ζ₯ node_modules
if [ ! -d "node_modules" ]; then
echo "π¦ Installing dependencies..."
npm ci --prefer-offline --no-audit
fi
# ζε»Ί
echo "ποΈ Running build..."
npm run build
if [ ! -f "../static/admin/index.html" ]; then
echo "β WebUI build failed: static/admin/index.html not found"
exit 1
fi
echo "β
WebUI built successfully!"
echo "π Output: static/admin/"
|