Skip to content

Commit

Permalink
Adding CYD2USB to webflash
Browse files Browse the repository at this point in the history
  • Loading branch information
witnessmenow committed Dec 11, 2024
1 parent 2bfc0c6 commit 6eb95ff
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-deploy-webflash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ jobs:
cp /home/runner/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin GitHubPages/ESPWebTools/cyd
cp .pio/build/cyd/firmware.bin GitHubPages/ESPWebTools/cyd
#Build cyd2usb
- name: Build cyd2usb
run: platformio run -e cyd2usb
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: cyd2usb Firmware
path: .pio/build/cyd2usb/firmware.bin
if-no-files-found: error
- name: Copy compiled binaries for webflash
run: |
mkdir GitHubPages/ESPWebTools/cyd2usb
# Copy the manifest file for the cyd2usb
cp GitHubPages/ESPWebTools/manifest.json GitHubPages/ESPWebTools/cyd2usb
cp .pio/build/cyd2usb/bootloader.bin GitHubPages/ESPWebTools/cyd2usb
cp .pio/build/cyd2usb/partitions.bin GitHubPages/ESPWebTools/cyd2usb
cp /home/runner/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin GitHubPages/ESPWebTools/cyd2usb
cp .pio/build/cyd2usb/firmware.bin GitHubPages/ESPWebTools/cyd2usb
#Build Matrix
- name: Build Matrix
run: platformio run -e trinity
Expand Down
4 changes: 4 additions & 0 deletions GitHubPages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ <h1>Spotify DIY Thing</h1>
<script type="module" src="https://unpkg.com/[email protected]/dist/web/install-button.js?module"></script>
<esp-web-install-button id="installButton" manifest="ESPWebTools/cyd/manifest.json"></esp-web-install-button>
<br>
<span>CYD2USB (if your CYD has two USB ports)</span>
<script type="module" src="https://unpkg.com/[email protected]/dist/web/install-button.js?module"></script>
<esp-web-install-button id="installButton" manifest="ESPWebTools/cyd2usb/manifest.json"></esp-web-install-button>
<br>
<span>Matrix</span>
<script type="module" src="https://unpkg.com/[email protected]/dist/web/install-button.js?module"></script>
<esp-web-install-button id="installButtonMatrix"
Expand Down

0 comments on commit 6eb95ff

Please sign in to comment.