[MU3] Partial fix #279707: First steps towards automatic updates on Linux #6919
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.
Partially resolves: https://musescore.org/en/node/279707
Creates a zsync delta update file for AppImages but doesn't yet upload it to a server as this has to be done by @igorkorsukov or another member of the in-house team.
For now, updates require an external tool like AppImageUpdate or AppImageLauncher, but if it works as expected then we can bundle a tool within MuseScore like we do with Sparkle on macOS.
See https://github.com/AppImage/AppImageSpec/blob/master/draft.md#update-information
Next steps to enable automatic updates...
Stable releases
Simply upload the zsync file to GitHub releases alongside the AppImage. The autoupdate software understands GitHub and will query the GitHub API to find the latest stable version.
Nightly builds
The autoupdate software doesn't know anything about OSUOSL, so the AppImage and zsync files MUST be made available at the following exact URLs:
Here "latest" is a fixed string, NOT a variable!!!
Whenever a new nightly build is uploaded on the 3.x branch, it must replace the old one at that same URL. Of course we want to keep historic nightlies available, so you should upload nightlies to version-dependent URLs like now and then make a symlink / redirect / physical copy of the latest one at the above URL. See PR #4757 for a suggestion of how to do this.