Skip to content

Web flasher built from the release manifest - #4

Merged
ShivtejG236 merged 1 commit into
mainfrom
feat/web-flasher
Nov 14, 2026
Merged

ShivtejG236 merged 1 commit into
mainfrom
feat/web-flasher

Conversation

@ShivtejG236

Copy link
Copy Markdown
Member

Step 5 (firmware half). Stacked on #3: merge #2, then #3, then retarget this to main.

What changes

  • web/index.html: a page that reads the release manifest.json, lists the boards (tested ones first, with each board's status shown) and flashes the chosen one over WebSerial using ESP Web Tools.
  • tools/release.py --site DIR assembles the site: the page, the images, and one ESP Web Tools manifest per board. The images are copied next to the page because browsers cannot fetch GitHub release assets cross-origin.
  • release.yml uploads the site and deploys it to GitHub Pages in a separate job that only runs when the repository variable PAGES_DEPLOY is true.
  • CI builds the site on every PR and uploads it as the web-flasher artifact.
  • README: the three ways to flash without a toolchain.

To turn it on

  1. Repository Settings → Pages → Source: GitHub Actions.
  2. Settings → Secrets and variables → Actions → Variables: add PAGES_DEPLOY = true.
  3. Push a release tag.

Testing

  • Built the site locally from a fake build tree and rendered it in headless Chromium at desktop and phone widths, light and dark: both boards listed, no layout overflow, no script errors.
  • Not tested: an actual flash from the browser. That needs a board, a real release image, and the ESP Web Tools script, which my sandbox cannot load. WebSerial only exists in Chrome and Edge on desktop; the page says so in other browsers.

Generated by Claude Code

@ShivtejG236
ShivtejG236 added this pull request to stack #5 November 14, 2026 01:41
Base automatically changed from feat/multi-board to main November 14, 2026 02:17
- web/index.html lists the boards in manifest.json and flashes the chosen
  one over WebSerial with ESP Web Tools
- tools/release.py --site assembles the page, the images and one ESP Web
  Tools manifest per board
- the release workflow uploads the site and deploys it to GitHub Pages
  when the PAGES_DEPLOY repository variable is true
@ShivtejG236
ShivtejG236 merged commit a758f66 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant