-
Notifications
You must be signed in to change notification settings - Fork 0
/
DownloadAll.ps1
31 lines (24 loc) · 949 Bytes
/
DownloadAll.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
Function Download ($url) {
# create temp with zip extention (or Expand will complain)
$tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } –PassThru
#download
Write-Output "downloading:" $url
Invoke-WebRequest -OutFile $tmp $url
#exract to same folder
Write-Output "extracting to:" $PSScriptRoot
$tmp | Expand-Archive -DestinationPath $PSScriptRoot -Force
# remove temporary file
$tmp | Remove-Item
Write-Output "done"
}
#txeh, makes it easy to work with hots file
Download("https://github.com/txn2/txeh/releases/download/v1.3.0/txeh_windows_amd64.zip")
#kubeFwd
Download("https://github.com/txn2/kubefwd/releases/download/1.13.0/kubefwd_windows_amd64.zip")
#optional:
#k9s, console dashboard and more
#scoop install k9s
#octant, dashboard
#choco install octant --confirm