Skip to content
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

Completely disable Velopack when using an external updater #29805

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

smallketchup82
Copy link
Contributor

@smallketchup82 smallketchup82 commented Sep 9, 2024

This PR will completely disable Velopack if OSU_EXTERNAL_UPDATE_PROVIDER is provided. The morale for this PR was caesay's reponse here.

Testing Checklist

  • Test if Velopack gets disabled after passing environment variable
    image
  • Test if Velopack gets enabled if the environment variable is not passed
    image
    (added a custom logger to notify if setup runs correctly)

Opening as a draft since I haven't tested it yet & have to fix conflicts, but I'll get around to it soon.

@smallketchup82 smallketchup82 marked this pull request as ready for review September 9, 2024 01:40
@smallketchup82 smallketchup82 marked this pull request as draft September 9, 2024 01:41
@smallketchup82 smallketchup82 marked this pull request as ready for review September 9, 2024 01:44
@@ -169,6 +169,14 @@ private static bool trySendIPCMessage(IIpcHost host, string cwd, string[] args)

private static void setupVelopack()
{
string? packageManaged = Environment.GetEnvironmentVariable("OSU_EXTERNAL_UPDATE_PROVIDER");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be moved to a common (static) location so that it's not referenced twice by name in two different places?

@pull-request-size pull-request-size bot added size/S and removed size/XS labels Sep 9, 2024
@peppy peppy added the next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! label Sep 9, 2024
@smoogipoo smoogipoo merged commit fd887b2 into ppy:master Sep 11, 2024
13 checks passed
@smallketchup82 smallketchup82 deleted the complete-disable-velopack branch September 11, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants