diff --git a/bin/aria2c.exe b/bin/aria2c.exe deleted file mode 100644 index 5004e10..0000000 Binary files a/bin/aria2c.exe and /dev/null differ diff --git a/msupdate.ps1 b/msupdate.ps1 index ea6f205..d4c3140 100644 --- a/msupdate.ps1 +++ b/msupdate.ps1 @@ -14,6 +14,12 @@ if (-not (Test-Path -Path ".\bin\wimlib\rclone.exe")) { Expand-Archive -Path .\temp\rclone.zip -DestinationPath .\temp\ -Force Copy-Item -Path .\temp\rclone-*-windows-amd64\rclone.exe -Destination .\bin\rclone.exe } +if (-not (Test-Path -Path ".\bin\aria2c.exe")) { + Write-Host "aria2c not found, downloading..." + Invoke-WebRequest -Uri 'https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip' -outfile .\temp\aria2.zip + Expand-Archive -Path .\temp\aria2.zip -DestinationPath .\temp -Force + Move-Item -Path .\temp\aria2-1.37.0-win-64bit-build1\aria2c.exe -Destination .\bin\aria2c.exe -Force +} $WUScript = "https://mirror.ghproxy.com/https://raw.githubusercontent.com/adavak/Win_ISO_Patching_Scripts/master/Scripts/netfx4.8.1/script_netfx4.8.1_19041_x64.meta4" $NETScript = "https://mirror.ghproxy.com/https://raw.githubusercontent.com/adavak/Win_ISO_Patching_Scripts/master/Scripts/script_19041_x64.meta4"