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/"