30 lines
761 B
Bash
30 lines
761 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "========================================"
|
|
echo "PicoBot Web UI Build Script"
|
|
echo "========================================"
|
|
|
|
# Check if we're in the right directory
|
|
if [ ! -f "Cargo.toml" ]; then
|
|
echo "Error: Please run this script from the project root directory"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "Building PicoBot (frontend is built automatically by cargo via build.rs)..."
|
|
echo "----------------------------------------"
|
|
cargo build --release
|
|
|
|
echo ""
|
|
echo "========================================"
|
|
echo "Build complete!"
|
|
echo "========================================"
|
|
echo ""
|
|
echo "To run the application:"
|
|
echo " cargo run --release -- gateway"
|
|
echo ""
|
|
echo "Then open your browser to:"
|
|
echo " http://127.0.0.1:19876"
|
|
echo ""
|