File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ $ErrorActionPreference = 'Stop'
4
4
Remove-Item - Path " .\temp\" - Recurse - ErrorAction Ignore
5
5
New-Item - Path " .\temp\" - ItemType " directory" - ErrorAction Ignore
6
6
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
+
7
18
$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"
8
19
$NETScript = " https://mirror.ghproxy.com/https://raw.githubusercontent.com/adavak/Win_ISO_Patching_Scripts/master/Scripts/script_19041_x64.meta4"
9
20
You can’t perform that action at this time.
0 commit comments