Krolyxon
Commit afeaa4f

Branches

Tags

Refs →

orion-rfafeaa4f

add web flasher

Author
krolyxon
Date
2026-06-08 22:32 +0530
Parent
bad888f
Commit
afeaa4ff49239cf5149448e3fda2f0ce4f96e6bf

+127 −0

3 files changed

  1. A .github/workflows/build-and-deploy.yml +57 −0
  2. A web-flasher/index.html +47 −0
  3. A web-flasher/manifest.json +23 −0
A .github/workflows/build-and-deploy.yml View
@@ -0,0 +1,57 @@
1+name: Build and Deploy Web Flasher
2+
3+on:
4+ push:
5+ branches:
6+ - main
7+
8+permissions:
9+ contents: read
10+ pages: write
11+ id-token: write
12+
13+jobs:
14+ build:
15+ runs-on: ubuntu-latest
16+
17+ steps:
18+ - name: Checkout
19+ uses: actions/checkout@v4
20+
21+ - name: Install PlatformIO
22+ run: |
23+ pip install platformio
24+
25+ - name: Build Firmware
26+ run: |
27+ pio run
28+
29+ - name: Copy Firmware Files
30+ run: |
31+ mkdir -p deploy
32+
33+ cp web-flasher/index.html deploy/
34+ cp web-flasher/manifest.json deploy/
35+
36+ cp .pio/build/*/firmware.bin deploy/
37+ cp .pio/build/*/bootloader.bin deploy/
38+ cp .pio/build/*/partitions.bin deploy/
39+
40+ - name: Upload Pages Artifact
41+ uses: actions/upload-pages-artifact@v3
42+ with:
43+ path: deploy
44+
45+ deploy:
46+ needs: build
47+
48+ runs-on: ubuntu-latest
49+
50+ environment:
51+ name: github-pages
52+ url: ${{ steps.deployment.outputs.page_url }}
53+
54+ steps:
55+ - name: Deploy
56+ id: deployment
57+ uses: actions/deploy-pages@v4
A web-flasher/index.html View
@@ -0,0 +1,47 @@
1+<!DOCTYPE html>
2+<html>
3+<head>
4+ <meta charset="UTF-8">
5+ <title>ORION-RF Installer</title>
6+
7+ <script
8+ type="module"
9+ src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js">
10+ </script>
11+
12+ <style>
13+ body {
14+ font-family: sans-serif;
15+ max-width: 700px;
16+ margin: auto;
17+ padding: 2rem;
18+ }
19+
20+ h1 {
21+ text-align: center;
22+ }
23+
24+ .card {
25+ border: 1px solid #ddd;
26+ padding: 20px;
27+ border-radius: 10px;
28+ }
29+ </style>
30+</head>
31+<body>
32+
33+<h1>ORION-RF Installer</h1>
34+
35+<div class="card">
36+ <h2>Stable Release</h2>
37+
38+ <p>
39+ Connect your ESP32-S3 and click Install.
40+ </p>
41+
42+ <esp-web-install-button manifest="manifest.json">
43+ </esp-web-install-button>
44+</div>
45+
46+</body>
47+</html>
A web-flasher/manifest.json View
@@ -0,0 +1,23 @@
1+{
2+ "name": "ORION-RF",
3+ "version": "latest",
4+ "builds": [
5+ {
6+ "chipFamily": "ESP32-S3",
7+ "parts": [
8+ {
9+ "path": "./bootloader.bin",
10+ "offset": 0
11+ },
12+ {
13+ "path": "./partitions.bin",
14+ "offset": 32768
15+ },
16+ {
17+ "path": "./firmware.bin",
18+ "offset": 65536
19+ }
20+ ]
21+ }
22+ ]
23+}