leaf/examples/file_browser_demo/build.sh
2025-08-05 15:02:23 +02:00

18 lines
441 B
Bash
Executable File

#!/bin/bash
echo "Building File Browser Demo with Trunk..."
# Check if trunk is installed
if ! command -v trunk &> /dev/null; then
echo "Trunk is not installed. Installing..."
cargo install trunk
fi
# Build for development
echo "Building for development..."
trunk build
echo "Build complete! Files are in the 'dist' directory."
echo "To serve locally, run: trunk serve"
echo "To build for production, run: trunk build --release"