Conversation
✅ Build ArtifactsVersion:
|
✅ Build ArtifactsVersion:
|
✅ Build ArtifactsVersion:
|
✅ Build ArtifactsVersion:
|
✅ Build ArtifactsVersion:
|
Adds docs/functions/api/device/firmware/latest and .../upgrade_desc, deployed alongside the Jekyll docs site (wrangler runs with workingDirectory: docs so its functions/ auto-detection finds them). - latest: mirrors unisrv's real /api/device/firmware/latest shape, ?channel=stable|beta resolves the newest matching GitHub release, cached at the edge for 5 minutes. - upgrade_desc: builds the descriptor its `note` field points to from the same release (size/sha256 from the asset digest, release_notes scraped from the "New Features and Key Changes" section); md5 is a dummy deadbeef value since GitHub doesn't expose one. - GitHub API errors pass through their real status instead of a fixed 404, and error responses are sent with Cache-Control: no-store. - Anchors the `firmware/` .gitignore rule so it stops swallowing the new nested docs/functions/.../firmware/ directory.
✅ Build ArtifactsVersion:
|
✅ Build ArtifactsVersion:
|
Contributor
|
Any new updates on using this to provide OTA updates for Paxx firmware? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
docs/functions/api/device/firmware/latestand.../upgrade_desc, deployed alongside the Jekyll docs site tosnapmakeru1-extended-firmware.pages.dev(cloudflare_pages.yamlnow runswranglerwithworkingDirectory: docsso itsfunctions/auto-detection picks updocs/functions/, deploying../_sitefor the static assets).latestmirrorsunisrv's real/api/device/firmware/latestpath and shape (ApiDeviceFirmwareLatest, minusauthDevices).?channel=stableresolves the latest GitHub release;?channel=betaresolves the latest of either a release or pre-release, whichever is newer. Resolves againstGITHUB_REPOvia the GitHub API, cached at Cloudflare's edge for 5 minutes.upgrade_descbuilds the descriptor itsnotefield points to on the fly from the same release's metadata: realsize/sha256from the asset's GitHubdigest,release_notes.en-GBscraped from the release body's "New Features and Key Changes" section, and a dummymd5(deadbeef...) since GitHub doesn't expose one and hashing the ~300MB asset per request isn't implemented — auto-upgrade through this endpoint isn't end-to-end functional yet.403on rate-limit) instead of a fixed404, falling back to502for network errors; error responses are sent withCache-Control: no-storeand never cached.firmware/.gitignorerule to the repo root so it stops swallowing the new nesteddocs/functions/.../firmware/directory.See
docs/functions/README.mdfor the full endpoint reference.