mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-24 10:10:12 +01:00
Updater: kinda confused how this didn't work?
This commit is contained in:
parent
02e8278438
commit
640d7f9e77
@ -5,6 +5,8 @@ namespace Ryujinx.UI.Common.Models.Github
|
|||||||
public class GithubReleasesJsonResponse
|
public class GithubReleasesJsonResponse
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string TagName { get; set; }
|
||||||
public List<GithubReleaseAssetJsonResponse> Assets { get; set; }
|
public List<GithubReleaseAssetJsonResponse> Assets { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ namespace Ryujinx.Ava
|
|||||||
|
|
||||||
string fetchedJson = await jsonClient.GetStringAsync(LatestReleaseUrl);
|
string fetchedJson = await jsonClient.GetStringAsync(LatestReleaseUrl);
|
||||||
var fetched = JsonHelper.Deserialize(fetchedJson, _serializerContext.GithubReleasesJsonResponse);
|
var fetched = JsonHelper.Deserialize(fetchedJson, _serializerContext.GithubReleasesJsonResponse);
|
||||||
_buildVer = fetched.Name;
|
_buildVer = fetched.TagName;
|
||||||
|
|
||||||
foreach (var asset in fetched.Assets)
|
foreach (var asset in fetched.Assets)
|
||||||
{
|
{
|
||||||
@ -156,7 +156,7 @@ namespace Ryujinx.Ava
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
newVersion = Version.Parse(ReleaseInformation.IsCanaryBuild ? _buildVer.Split(' ')[1] : _buildVer);
|
newVersion = Version.Parse(_buildVer);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user