-
Notifications
You must be signed in to change notification settings - Fork 131
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
feat: add Dolphin Release Channels #388
Merged
Merged
Conversation
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
9d0f324
to
0f211e9
Compare
c8c46c1
to
3381ca9
Compare
d275baf
to
901ad4b
Compare
f6165c0
to
aca6dd5
Compare
and reword everything to be {netplay,playback}Beta(Dolphin) and dolphinBeta
this also removes the dolphin path settings
6e69004
to
609bd7f
Compare
vinceau
approved these changes
Oct 16, 2023
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.
LGTM with one suggestion.
import { downloadLatestDolphin } from "./download"; | ||
import type { DolphinVersionResponse } from "./fetchLatestVersion"; | ||
|
||
const log = electronLog.scope("dolphin/installation"); |
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.
Suggested change
const log = electronLog.scope("dolphin/installation"); | |
const log = electronLog.scope("dolphin/mainlineInstallation"); |
Do you think this would be helpful?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What and Why
This PR builds out functionality to support installations of dolphin betas that live side by side with the stable version. This is to ensure users can swap between the two at will as well as allow us to automatically swap back to stable if beta dolphin is lagging behind release-wise.
How
This PR makes
DolphinInstallation
an interface that gets implemented byIshiirukaDolphinInstallation
andMainlineDolphinInstallation
. There are a limited number of changes made to Ishiiruka's installation method such as the installation folder no longer being a setting that is passed in andfetchLatestVersion
being called from the Dolphin manager side.Order of operations for installing/updating dolphin
Current
DolphinManager
callsthis.getInstallation()
and theninstallation.validate()
orinstallation.downloadAndInstall()
.fetchLatestVersion()
gets called from within the functions above and accepts theDolphinLaunchType
. it will only ever return the current stable release since the beta flag is hard coded to false.New
DolphinManager
callsfetchLatestVersion()
before callingthis.getInstallation()
fetchLatestVersion()
accepts theDolphinLaunchType
,includeBeta
flag, and a reference tosettingsManager
. it will pass the beta flag into the gql request to get either the stable release or latest release.fetchLatestVersion()
will check the version returned by the backend for-beta
, then it will callsettingsManager.setDolphinBetaAvailable()
to allow the rest of the app to know if it should use beta DolphinfetchLatestVersion()
returnsDolphinVersionResponse
.this.getInstallation()
is called and will returnMainlineDolphinInstallation
if a beta is available orpromoteToStable
is true andIshiirukaDolphinInstallation
otherwise.currently this is for netplay only because mainline playback still has a lot of work to be done