always stream 7z out of assembly

during client setup task
This commit is contained in:
IsWaffle 2024-03-25 14:28:34 -04:00
parent 8c446a6e81
commit a83cc0faee

View File

@ -25,9 +25,6 @@ public class SetupClientTask : InstallerTaskBase
var progress = new Progress<double>((d) => { SetStatus(null, null, (int)Math.Floor(d)); });
if (_data.PatchNeeded)
{
SetStatus("Preparing 7z", "", null, ProgressStyle.Indeterminate);
if (!FileHelper.StreamAssemblyResourceOut("7z.dll", Path.Join(DownloadCacheHelper.CachePath, "7z.dll")))
@ -35,6 +32,8 @@ public class SetupClientTask : InstallerTaskBase
return Result.FromError("Failed to prepare 7z");
}
if (_data.PatchNeeded)
{
// extract patcher files
SetStatus("Extrating Patcher", "", 0);