From 0f0f6b03a1f4e286787ee1aa51544a3d03b3f2a9 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Tue, 19 Mar 2024 12:51:30 -0400 Subject: [PATCH] fix update script idk why I can't use copy item but who cares, bits transfer still works fine --- SPTInstaller/Resources/update.ps1 | 6 +++++- SPTInstaller/SPTInstaller.csproj | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/SPTInstaller/Resources/update.ps1 b/SPTInstaller/Resources/update.ps1 index be36892..f0787b1 100644 --- a/SPTInstaller/Resources/update.ps1 +++ b/SPTInstaller/Resources/update.ps1 @@ -16,7 +16,11 @@ if ($installer -ne $null) { Write-Host "Copying new installer ..." -Copy-Item -Path $source -Destination $destination -Force +Import-Module BitsTransfer + +Start-BitsTransfer -Source $source -Destination $destination + +Remove-Module BitsTransfer # remove the new installer from the cache folder after it is copied Remove-Item -Path $source diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj index 86aab8f..2b89ea0 100644 --- a/SPTInstaller/SPTInstaller.csproj +++ b/SPTInstaller/SPTInstaller.csproj @@ -9,8 +9,8 @@ icon.ico Assets\icon.ico Debug;Release;TEST - 2.31 - 2.31 + 2.32 + 2.32 SPT-AKI