Skip to content

fix: download firmware releases from NabuCasa/silabs-firmware-builder releases branch#49

Merged
AlCalzone merged 4 commits intomasterfrom
fix-firmware-download
Mar 4, 2026
Merged

fix: download firmware releases from NabuCasa/silabs-firmware-builder releases branch#49
AlCalzone merged 4 commits intomasterfrom
fix-firmware-download

Conversation

@AlCalzone
Copy link
Copy Markdown
Collaborator

fixes: #40

corsproxy.io is no longer free and due to lack of a good alternative, we now piggyback off this workaround for not being able to download from GitHub releases without running into CORS issues.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Z-Wave firmware downloads by switching from GitHub Releases asset downloads (blocked by CORS and previously proxied) to fetching firmware binaries via the NabuCasa/silabs-firmware-builder releases branch manifests, including checksum verification.

Changes:

  • Fetches a list of stable GitHub releases and searches for a ZWA-2 .gbl entry via manifest.json on the releases branch.
  • Downloads firmware via raw.githubusercontent.com and verifies size + checksum (SHA-256 or SHA3-256).
  • Adds @noble/hashes dependency to support SHA3-256 verification.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/lib/firmware-download.ts Switches firmware download source to release-branch manifests and adds checksum verification logic.
package.json Adds @noble/hashes dependency required for SHA3-256 verification.
package-lock.json Locks the newly added @noble/hashes dependency.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@AlCalzone AlCalzone merged commit 9e0d45b into master Mar 4, 2026
4 checks passed
@AlCalzone AlCalzone deleted the fix-firmware-download branch March 4, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Firmware Release Download Fails with 403

2 participants