22 lines
562 B
22 lines
562 B
$url = "https://www.gitea1.intx.com.au/jn/punkbin/raw/branch/master/win64/tclkit86bi.exe" |
|
$output = "$(join-path $PSScriptRoot "..\src\runtime\tclkit86bi.exe")" |
|
|
|
#padding |
|
|
|
|
|
|
|
if (-not(Test-Path -Path $output -PathType Leaf)) { |
|
try { |
|
#Invoke-WebRequest $url -OutFile |
|
|
|
Import-Module BitsTransfer |
|
Start-BitsTransfer -Source $url -Destination $output |
|
Write-Host "Runtime saved at $output" |
|
} |
|
catch { |
|
throw $_.Exception.Message |
|
} |
|
} |
|
else { |
|
Write-Host "Runtime already found at $output" |
|
} |