Replace hardcoded release config with dynamic GitHub Releases API loading#78
Draft
Replace hardcoded release config with dynamic GitHub Releases API loading#78
Conversation
- Create bin/boot/ with shared bootloader/partition files - Create releases.js: fetches wled/WLED releases, generates esp-web-tools manifests dynamically as blob URLs, populates dropdown, with sessionStorage caching and graceful fallback to static HTML options - Update index.htm: add releases.js script, call loadReleases() on load - Static options remain as fallback when API is unavailable Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
…gging Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add dynamic release configuration using GitHub release API
Replace hardcoded release config with dynamic GitHub Releases API loading
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The version dropdown was hand-coded HTML
<option>elements pointing to static manifest JSON files. Every new WLED release required manual HTML edits and committing new manifest files.Approach
Dynamically fetch releases from
https://api.github.com/repos/wled/WLED/releases, generate esp-web-tools manifests on the fly as blob URLs, and set them asdata-*attributes on<option>elements — the same interfacescript.jsalready consumes. Zero changes toscript.js.Changes
releases.js(new) — Core logic:VARIANTSconfigdata-manifest,data-ethernet,data-v4, etc. on each<option>bin/boot/(new) — Shared bootloader/partition files in a single location, referenced by absolute URL in dynamic manifestsindex.htm— Two lines: added<script src="releases.js">andloadReleases()in onload. Static options kept as fallback.How variant detection works
Future enhancement
If the WLED build process includes a
web_installer.jsonasset in releases,releases.jscould prefer that over pattern matching for exact per-release control.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esphome.github.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.