Skip to content
Snippets Groups Projects
Commit 640d7f9e authored by GreemDev's avatar GreemDev
Browse files

Updater: kinda confused how this didn't work?

parent 02e82784
No related branches found
Tags Canary-1.2.215
No related merge requests found
......@@ -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; }
}
}
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment