Skip to content

Commit 28e341e

Browse files
author
xrgzs
committed
dependencies
1 parent 9d8717c commit 28e341e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

msupdate.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ $ErrorActionPreference = 'Stop'
44
Remove-Item -Path ".\temp\" -Recurse -ErrorAction Ignore
55
New-Item -Path ".\temp\" -ItemType "directory" -ErrorAction Ignore
66

7+
# Installing dependencies
8+
if (-not (Test-Path -Path ".\bin\rclone.conf")) {
9+
Write-Error "rclone conf not found"
10+
}
11+
if (-not (Test-Path -Path ".\bin\wimlib\rclone.exe")) {
12+
Write-Host "rclone not found, downloading..."
13+
Invoke-WebRequest -Uri 'https://downloads.rclone.org/rclone-current-windows-amd64.zip' -outfile .\temp\rclone.zip
14+
Expand-Archive -Path .\temp\rclone.zip -DestinationPath .\temp\ -Force
15+
Copy-Item -Path .\temp\rclone-*-windows-amd64\rclone.exe -Destination .\bin\rclone.exe
16+
}
17+
718
$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"
819
$NETScript = "https://mirror.ghproxy.com/https://raw.githubusercontent.com/adavak/Win_ISO_Patching_Scripts/master/Scripts/script_19041_x64.meta4"
920

0 commit comments

Comments
 (0)