From 6773406bb69b3b4845997d835de5d41a8dca0678 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Thu, 19 Jun 2025 04:18:02 -0500 Subject: [PATCH] infra: Use Ryujinx.UpdateClient NuGet package for checking for updates. Main benefit to this is sharing the C# model definitions from what the server returns and Ryujinx uses in-app without differences. Additionally removed the GitHub API JSON models. --- Directory.Packages.props | 2 + nuget.config | 2 + .../Github/GithubReleaseAssetJsonResponse.cs | 9 -- .../Github/GithubReleasesJsonResponse.cs | 12 --- .../GithubReleasesJsonSerializerContext.cs | 7 -- src/Ryujinx/Ryujinx.csproj | 2 + src/Ryujinx/Systems/Updater/Updater.GitLab.cs | 91 ++++++------------- src/Ryujinx/Systems/Updater/Updater.cs | 14 +-- 8 files changed, 38 insertions(+), 101 deletions(-) delete mode 100644 src/Ryujinx/Common/Models/Github/GithubReleaseAssetJsonResponse.cs delete mode 100644 src/Ryujinx/Common/Models/Github/GithubReleasesJsonResponse.cs delete mode 100644 src/Ryujinx/Common/Models/Github/GithubReleasesJsonSerializerContext.cs diff --git a/Directory.Packages.props b/Directory.Packages.props index ccbcb3f6b..ce2a152d1 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -42,6 +42,8 @@ + + diff --git a/nuget.config b/nuget.config index 77eadcf88..26f795ba1 100644 --- a/nuget.config +++ b/nuget.config @@ -10,11 +10,13 @@ + +