From 640d7f9e779b51433406b4f65ca175bbbb960394 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Wed, 6 Nov 2024 19:55:58 -0600 Subject: [PATCH] Updater: kinda confused how this didn't work? --- .../Models/Github/GithubReleasesJsonResponse.cs | 2 ++ src/Ryujinx/Updater.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs index 0250e1094..7bec1bcdc 100644 --- a/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs +++ b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs @@ -5,6 +5,8 @@ namespace Ryujinx.UI.Common.Models.Github public class GithubReleasesJsonResponse { public string Name { get; set; } + + public string TagName { get; set; } public List Assets { get; set; } } } diff --git a/src/Ryujinx/Updater.cs b/src/Ryujinx/Updater.cs index 7fc362cda..a466ea832 100644 --- a/src/Ryujinx/Updater.cs +++ b/src/Ryujinx/Updater.cs @@ -101,7 +101,7 @@ namespace Ryujinx.Ava string fetchedJson = await jsonClient.GetStringAsync(LatestReleaseUrl); var fetched = JsonHelper.Deserialize(fetchedJson, _serializerContext.GithubReleasesJsonResponse); - _buildVer = fetched.Name; + _buildVer = fetched.TagName; foreach (var asset in fetched.Assets) { @@ -156,7 +156,7 @@ namespace Ryujinx.Ava try { - newVersion = Version.Parse(ReleaseInformation.IsCanaryBuild ? _buildVer.Split(' ')[1] : _buildVer); + newVersion = Version.Parse(_buildVer); } catch {