Skip to content

Commit

Permalink
Updater: kinda confused how this didn't work?
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Nov 7, 2024
1 parent 02e8278 commit 640d7f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<GithubReleaseAssetJsonResponse> Assets { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Ryujinx/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ await ContentDialogHelper.CreateWarningDialog(

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)
{
Expand Down Expand Up @@ -156,7 +156,7 @@ await ContentDialogHelper.CreateErrorDialog(

try
{
newVersion = Version.Parse(ReleaseInformation.IsCanaryBuild ? _buildVer.Split(' ')[1] : _buildVer);
newVersion = Version.Parse(_buildVer);
}
catch
{
Expand Down

0 comments on commit 640d7f9

Please sign in to comment.