Skip to content

Commit

Permalink
#### Version - 2.5.3.22 - 6/13/2022
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
halgari committed Jun 13, 2022
1 parent bf970dc commit 8dc1374
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 11 additions & 3 deletions Wabbajack.Launcher/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ private async Task CheckForUpdates()

if (_tokenProvider.HaveToken())
{
_version = await GetNexusReleases(CancellationToken.None);
try
{
_version = await GetNexusReleases(CancellationToken.None);
}
catch (Exception)
{
_errors.Add("Nexus error");
}
}

if (_version == default)
Expand Down Expand Up @@ -85,13 +92,14 @@ private async Task CheckForUpdates()
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();
Expand All @@ -106,7 +114,7 @@ private async Task CheckForUpdates()
await using var of = outPath.Open(FileMode.Create, FileAccess.Write, FileShare.None);
await rdr.Extract(file, of, CancellationToken.None);
}
}*/


var wc = new WebClient();
Expand Down

0 comments on commit 8dc1374

Please sign in to comment.