Merge pull request 'fix/free-space-check' (#47) from waffle.lord/SPT-AKI-Installer:fix/free-space-check into master

Reviewed-on: CWX/SPT-AKI-Installer#47
This commit is contained in:
IsWaffle 2023-12-29 20:42:06 +00:00
commit b7104168b8
2 changed files with 6 additions and 3 deletions

View File

@ -36,8 +36,11 @@ public class FreeSpacePreCheck : PreCheckBase
var availableSize = DriveInfo.GetDrives().FirstOrDefault(d => d.Name.ToLower() == installTargetDirectoryInfo.Root.Name.ToLower())?.AvailableFreeSpace ?? 0; var availableSize = DriveInfo.GetDrives().FirstOrDefault(d => d.Name.ToLower() == installTargetDirectoryInfo.Root.Name.ToLower())?.AvailableFreeSpace ?? 0;
// add 10Gb overhead to game files for potential patches / release files
eftSourceDirSize += 10000000000;
var availableSpaceMessage = $"Available Space: {DirectorySizeHelper.SizeSuffix(availableSize, 2)}"; var availableSpaceMessage = $"Available Space: {DirectorySizeHelper.SizeSuffix(availableSize, 2)}";
var requiredSpaceMessage = $"Space Required for EFT Client: {DirectorySizeHelper.SizeSuffix(eftSourceDirSize, 2)}"; var requiredSpaceMessage = $"Space Required for EFT Client: {DirectorySizeHelper.SizeSuffix(eftSourceDirSize, 2)} including ~10Gb overhead";
if (eftSourceDirSize > availableSize) if (eftSourceDirSize > availableSize)
{ {

View File

@ -9,8 +9,8 @@
<PackageIcon>icon.ico</PackageIcon> <PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon> <ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations> <Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.25</AssemblyVersion> <AssemblyVersion>2.26</AssemblyVersion>
<FileVersion>2.25</FileVersion> <FileVersion>2.26</FileVersion>
<Company>SPT-AKI</Company> <Company>SPT-AKI</Company>
</PropertyGroup> </PropertyGroup>