#!/bin/bash # Copyright 2022 Espressif Systems (Shanghai) PTE LTD # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # This script generates the index.html page for ESP-Brookesia Launchpad # Usage: generate_launchpad_index.sh # Example: generate_launchpad_index.sh espressif/esp-brookesia ./images git_remote="$1" output_dir="${2:-.}" # Build base URL base_url="$(echo $git_remote | sed 's|\(.*\)/\(.*\)|https://\1.github.io/\2/|')" launchpad_base="https://espressif.github.io/esp-launchpad/?flashConfigURL=" OUT_FILE="$output_dir/index.html" cat < $OUT_FILE ESP-Brookesia Launchpad

🚀 ESP-Brookesia Launchpad

One-click flash firmware to your ESP32 device via Web Serial

🔊 Speaker

ESP-Brookesia Speaker product firmware. A complete AI voice assistant solution.

Flash Speaker

🎛️ Service Console

Interactive console for testing ESP-Brookesia services. Supports multiple development boards.

Flash Service Console
EOF echo "Generated $OUT_FILE"