Create latest.json build artefact for updater endpoint#351
Closed
Serophots wants to merge 18 commits intocrabnebula-dev:mainfrom
Serophots:main
Closed
Create latest.json build artefact for updater endpoint#351Serophots wants to merge 18 commits intocrabnebula-dev:mainfrom Serophots:main
latest.json build artefact for updater endpoint#351Serophots wants to merge 18 commits intocrabnebula-dev:mainfrom
Serophots:main
Conversation
Contributor
|
Thank you for the PR! Since it's a bit of a larger change it will likely take a while for us to review (at this point we can take over in case you're unavailable). |
Author
|
Hi, I appreciate you looking at this. This is my first PR and I'm not very good with git and my attempts to go back and sign that first commit seem to just be piling on more commits to the PR.. Apologies for this. Would it be okay if I created a brand new PR with all of the changes in one signed commit? |
Contributor
|
yes of course! and no worries, signing past commits is absolute hell, i couldn't tell you how to do it right now either 🙃 |
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.
This PR will have cargo-packager automatically build a
latest.jsonartefact which summarises all of the other artefacts to be consumed as an updater endpoint. This makes using cargo-packager through Github actions and Github releases fully automated by allowing the updater endpoint to be a statically hostedlatest.jsonfile accessible throughhttps://github.com/org/repo/releases/latest/download/latest.json. This closes #350Changes to Packager config
Example
latest.jsonHere is an example of a latest.json generated by this PR. The schema is compatible with the existing Updater crate.
{ "version": "4.0.0", "notes": null, "pub_date": "2025-07-04T14:12:24.096236Z", "platforms": { "aarch64-apple-darwin": { "url": "https://github.com/org/repo/org/download/v4.0.0/app_4.0.0_aarch64.dmg", "signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIGNhcmdvLXBhY2thZ2VyIHNlY3JldCBrZXkKUlVSRC82M0RjS29jcTNETVJGblAybzRtTmJlTUVZQjlBcXJPUzlUSHVDYWtSYlVTc3FzeUdBd0VWVDFEdXFrdnBqek9WT3ZrV01XcmtrZk1NYlVJNGpHSm5OTWFyRmJDRUFJPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzUxNjM4MzQ0CWZpbGU6VW5pRmx5XzQuMC4wX2FhcmNoNjQuZG1nCnR3aXFqZFMzOHIxbGJOcCtKK3QxMzVreEg1VUFvUE5qa1FsTUxHalMzNWd6NzNabkV3cGJGOWZNQ29aSXVmemZVamorRmppSG9Fa3RXSytUVkNvb0J3PT0K", "format": "dmg" } } }Caveats
latest.jsonshould point to, so currently those packager formats are excluded from thelatest.json.