From afeaa4ff49239cf5149448e3fda2f0ce4f96e6bf Mon Sep 17 00:00:00 2001 From: krolyxon Date: Mon, 8 Jun 2026 22:32:54 +0530 Subject: add web flasher --- .github/workflows/build-and-deploy.yml | 57 ++++++++++++++++++++++++++++++++++ web-flasher/index.html | 47 ++++++++++++++++++++++++++++ web-flasher/manifest.json | 23 ++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 .github/workflows/build-and-deploy.yml create mode 100644 web-flasher/index.html create mode 100644 web-flasher/manifest.json diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 0000000..08eecef --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -0,0 +1,57 @@ +name: Build and Deploy Web Flasher + +on: + push: + branches: + - main + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install PlatformIO + run: | + pip install platformio + + - name: Build Firmware + run: | + pio run + + - name: Copy Firmware Files + run: | + mkdir -p deploy + + cp web-flasher/index.html deploy/ + cp web-flasher/manifest.json deploy/ + + cp .pio/build/*/firmware.bin deploy/ + cp .pio/build/*/bootloader.bin deploy/ + cp .pio/build/*/partitions.bin deploy/ + + - name: Upload Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: deploy + + deploy: + needs: build + + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4 diff --git a/web-flasher/index.html b/web-flasher/index.html new file mode 100644 index 0000000..26d7510 --- /dev/null +++ b/web-flasher/index.html @@ -0,0 +1,47 @@ + + + + + ORION-RF Installer + + + + + + + +

ORION-RF Installer

+ +
+

Stable Release

+ +

+ Connect your ESP32-S3 and click Install. +

+ + + +
+ + + diff --git a/web-flasher/manifest.json b/web-flasher/manifest.json new file mode 100644 index 0000000..b51e2cb --- /dev/null +++ b/web-flasher/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "ORION-RF", + "version": "latest", + "builds": [ + { + "chipFamily": "ESP32-S3", + "parts": [ + { + "path": "./bootloader.bin", + "offset": 0 + }, + { + "path": "./partitions.bin", + "offset": 32768 + }, + { + "path": "./firmware.bin", + "offset": 65536 + } + ] + } + ] +} -- cgit v1.2.3