Create latest.json build artefact for updater endpoint
#369
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.
(Duplicate of #351 in order to get git commits signed properly)
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.