28 lines
949 B
Bash
Executable File
28 lines
949 B
Bash
Executable File
#!/bin/bash
|
|
# Script to download Bootstrap files for offline use
|
|
|
|
echo "Downloading Bootstrap 5.3.0 files..."
|
|
|
|
# Create directories if they don't exist
|
|
mkdir -p css
|
|
mkdir -p js
|
|
|
|
# Download Bootstrap CSS
|
|
echo "Downloading Bootstrap CSS..."
|
|
curl -L -o css/bootstrap.min.css https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css
|
|
|
|
# Download Bootstrap JS Bundle (includes Popper)
|
|
echo "Downloading Bootstrap JS Bundle..."
|
|
curl -L -o js/bootstrap.bundle.min.js https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js
|
|
|
|
echo ""
|
|
echo "Download complete!"
|
|
echo ""
|
|
echo "Files downloaded:"
|
|
echo " - css/bootstrap.min.css ($(du -h css/bootstrap.min.css | cut -f1))"
|
|
echo " - js/bootstrap.bundle.min.js ($(du -h js/bootstrap.bundle.min.js | cut -f1))"
|
|
echo ""
|
|
echo "Now you can upload the filesystem to your ESP32:"
|
|
echo " 1. In VS Code, open PlatformIO"
|
|
echo " 2. Click 'Upload Filesystem Image' under PROJECT TASKS"
|