musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.15k stars 2.63k forks source link

One-click automatic updates / "update on next launch" #22774

Open cbjeukendrup opened 4 months ago

cbjeukendrup commented 4 months ago

Some apps, most notably ones using the Electron framework, provide very convenient ways of automatically installing updates. For example,

All of these apps make use of the Squirrel framework, which is built into Electron.

In MuseScore 3, the situation was similar to that: it made use of the Sparkle framework on macOS, and the WinSparkle port of that on Windows.

In MuseScore 4, we use our own solution, but unfortunately this doesn't go further than just downloading the update "in the foreground" and then letting the user install it manually. This has some disadvantages:

shoogle commented 4 months ago

Maybe we could do most of the download and installation in the background, extracting all the files to a temporary folder, then when we prompt the user to relaunch MuseScore, all we need to do is rename the temporary folder to put everything in the final, proper location.