lulzsun / RePlays

Open-source game recording management software
GNU General Public License v3.0
128 stars 16 forks source link

Migrate Squirrel to Velopack #199

Open sshcrack opened 2 months ago

sshcrack commented 2 months ago

Fixes issue #181 (maybe #192) . Migrated Squirrel to Velopack. Haven't tested updating yet and we'll have to handle Github Releases

I've made the UpdateManager a static public field in Updater to apply updates when the user clicks restart.

sshcrack commented 2 months ago

Alright, I'm setting up the csproj config, what should the packId be? RePlays? Also, we have to decide for a channel that velopack is going to use. I'm going for stable for now. Folder structure looks like this: grafik

sshcrack commented 2 months ago

To be done: Github workflows. I think a release has to be deployed manually first for velopack to create deltas and establish the update channel (and for the github workflow to work)

sshcrack commented 2 months ago

Sometimes delta updates are not applied when just exiting the application without calling ApplyUpdatesAndExit if an update is pending. Maybe we could add a exit hook to the application as well to apply updates. There's more info here

sshcrack commented 2 months ago

@lulzsun what do you think?

lulzsun commented 2 months ago

I'm holding off reviewing this until I have more free time. Since it sounds like this may introduce breaking changes, I'll have to properly test this myself before making decisions.