-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate update framework to Velopack #28743
Merged
+154
−278
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0ee8918
initial implementation
smallketchup82 1025e5b
rewrite the restart function
smallketchup82 04c8df0
Merge branch 'master' into velopack
smallketchup82 36a3765
Replace with attemptexit to better display how restarting is borked
smallketchup82 fae8f5f
Refactor VeloUpdateManager
smallketchup82 cae3607
Fix up restarting
smallketchup82 c13f24d
Remove InstallingUpdate progress notification
smallketchup82 461b791
Remove SimpleUpdateManager
smallketchup82 9e01cf7
Move setupVelo logic higher up
smallketchup82 6a03092
Reformat
smallketchup82 72cf6bb
Allow downgrading
smallketchup82 4898cff
Restart patch
smallketchup82 71816c0
Resurrect SimpleUpdateManager as MobileUpdateNotifier
smallketchup82 fcede9a
Bump velopack version
smallketchup82 d5b5215
Merge branch 'master' into velopack
smoogipoo 636ee50
Rename to VelopackUpdateManager
smoogipoo a038799
Update osu.Desktop.csproj
smallketchup82 b990af6
Use full name
peppy 42e1168
Remove github token variable & pass null for the github token
smallketchup82 f8a6a6a
Request restart asynchronously to avoid blocking update thread
peppy 68e6fa2
Make comment about velopack's init a bit more loud
peppy cd9b822
Pass through correct update to apply when calling `WaitExitThenApplyU…
peppy 08224b4
Simplify update process by caching pending update info and early-hand…
peppy b610233
Don't log probable network failures to sentry
peppy e564e8c
Add todo about fixing stutter on update application
peppy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems a similar method is used for unit test detection, but in some basic testing I couldn't break it in the same way we broke it last time (ie. inserting a
Logger.Log
call before the setup call)."needs to be run before anything else" sounds like a common sense thing, but is there an actual reason you found which makes this a requirement? If so, I'd probably want that explicitly mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Velopack docs suggest that you must run it before everything else. However, as you found, that's not necessarily a strict requirement. In another example on Velopack's docs, code is executed before the
.Run()
As for me, I decided "So you should put
setupVelopack()
before everything else, but putting stuff before it isn't the end of the world as it would've been with Squirrel. So I'll tone it down a bit, and just keep the advisory since it's good practice to run it ASAP."Though, @caesay would likely know best about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the inline comment a bit louder for now. Probably fine to continue.