#### Version - 2.5.3.22 - 6/13/2022

* Stop WJ from attempting to proxy all manual files
* Stop downloading the app twice when upgrading via the launcher
* Fall back to Github when we get an error from the Nexus in the launcher
This commit is contained in:
Timothy Baldridge 2022-06-13 08:35:52 -06:00
parent bf970dc4a1
commit 8dc13740dc
2 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,10 @@
### Changelog
#### Version - 2.5.3.22 - 6/13/2022
* Stop WJ from attempting to proxy all manual files
* Stop downloading the app twice when upgrading via the launcher
* Fall back to Github when we get an error from the Nexus in the launcher
#### Version - 2.5.3.21 - 6/9/2022
* Fix a bug in the streaming MediaFire downloader
* Improve the reliability of MediaFire, and Manual downloaders

View File

@ -54,7 +54,14 @@ public class MainWindowViewModel : ViewModelBase
if (_tokenProvider.HaveToken())
{
_version = await GetNexusReleases(CancellationToken.None);
try
{
_version = await GetNexusReleases(CancellationToken.None);
}
catch (Exception)
{
_errors.Add("Nexus error");
}
}
if (_version == default)
@ -85,13 +92,14 @@ public class MainWindowViewModel : ViewModelBase
Status = $"Getting download Uri for {_version.Version}";
var uri = await _version.Uri();
/*
var archive = new Archive()
{
Name = $"{_version.Version}.zip",
Size = _version.Size,
State = new Http {Url = uri}
};
await using var stream = await _downloader.GetChunkedSeekableStream(archive, CancellationToken.None);
var rdr = new ZipReader(stream, true);
var entries = (await rdr.GetFiles()).OrderBy(d => d.FileOffset).ToArray();
@ -106,7 +114,7 @@ public class MainWindowViewModel : ViewModelBase
await using var of = outPath.Open(FileMode.Create, FileAccess.Write, FileShare.None);
await rdr.Extract(file, of, CancellationToken.None);
}
}*/
var wc = new WebClient();