#### 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:34 -06:00
parent 9c6145ae39
commit 69de8f0e7a
6 changed files with 18 additions and 19 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

@ -6,8 +6,8 @@
<AssemblyName>wabbajack-cli</AssemblyName>
<Company>Wabbajack</Company>
<Platforms>x64</Platforms>
<AssemblyVersion>2.5.3.21</AssemblyVersion>
<FileVersion>2.5.3.21</FileVersion>
<AssemblyVersion>2.5.3.22</AssemblyVersion>
<FileVersion>2.5.3.22</FileVersion>
<Copyright>Copyright © 2019-2022</Copyright>
<Description>An automated ModList installer</Description>
<PublishReadyToRun>true</PublishReadyToRun>

View File

@ -4,8 +4,8 @@
<OutputType>Exe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<AssemblyVersion>2.5.3.21</AssemblyVersion>
<FileVersion>2.5.3.21</FileVersion>
<AssemblyVersion>2.5.3.22</AssemblyVersion>
<FileVersion>2.5.3.22</FileVersion>
<Copyright>Copyright © 2019-2022</Copyright>
<Description>Wabbajack Application Launcher</Description>
<PublishReadyToRun>true</PublishReadyToRun>

View File

@ -236,17 +236,8 @@ namespace Wabbajack.Lib
var upgrades = (await client.GetJsonAsync<ValidatedArchive[]>(Consts.UpgradedFilesURL));
var tmp = new List<Archive>();
foreach (var miss in missing)
{
if (miss.State is ManualDownloader.State ms && await DownloadDispatcher.ProxyHas(new Uri(ms.Url)))
{
tmp.Add(DownloadDispatcher.MaybeProxy(miss));
}
else
{
tmp.Add(DownloadDispatcher.MaybeProxy(miss));
}
}
foreach (var miss in missing)
tmp.Add(await DownloadDispatcher.MaybeProxy(miss));
missing = tmp;
if (download)

View File

@ -107,7 +107,7 @@ namespace Wabbajack.Lib.Downloaders
public static async Task<DownloadResult> DownloadWithPossibleUpgrade(Archive archive, AbsolutePath destination, ValidatedArchive[]? upgrades = null)
{
archive = MaybeProxy(archive);
archive = await MaybeProxy(archive);
bool ShouldTry(Archive archive)
{
@ -182,7 +182,7 @@ namespace Wabbajack.Lib.Downloaders
return DownloadResult.Update;
}
public static Archive MaybeProxy(Archive archive)
public static async ValueTask<Archive> MaybeProxy(Archive archive)
{
if (archive.State is (not GoogleDriveDownloader.State
and not MegaDownloader.State
@ -191,6 +191,9 @@ namespace Wabbajack.Lib.Downloaders
and not ManualDownloader.State))
return archive;
if (archive.State is ManualDownloader.State ms && !await ProxyHas(new Uri(ms.Url)))
return archive;
var uri = archive.State.GetManifestURL(archive);
var hash = archive.Hash != default ? $"&hash={archive.Hash.ToHex()}" : "";
Utils.Log($"Downloading via proxy ({Encoding.UTF8.GetBytes(uri!).xxHash().ToHex()}) {uri}");

View File

@ -6,8 +6,8 @@
<UseWPF>true</UseWPF>
<Platforms>x64</Platforms>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<AssemblyVersion>2.5.3.21</AssemblyVersion>
<FileVersion>2.5.3.21</FileVersion>
<AssemblyVersion>2.5.3.22</AssemblyVersion>
<FileVersion>2.5.3.22</FileVersion>
<Copyright>Copyright © 2019-2022</Copyright>
<Description>An automated ModList installer</Description>
<PublishReadyToRun>true</PublishReadyToRun>