Files
Torch/Jenkins/jenkins-grab-se.ps1
Brant Martin 74cdd9d055 fix the thing
2019-02-25 16:56:57 -05:00

27 lines
766 B
PowerShell

pushd
param(
[Parameter(Mandatory=$true)][string]$previewPass
)
$steamData = "C:/Steam/Data-preview/"
$steamCMDPath = "C:/Steam/steamcmd/"
$steamCMDZip = "C:/Steam/steamcmd.zip"
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path $steamData)) {
mkdir "$steamData"
}
if (!(Test-Path $steamCMDPath)) {
if (!(Test-Path $steamCMDZip)) {
(New-Object System.Net.WebClient).DownloadFile("https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip", "$steamCMDZip");
}
[System.IO.Compression.ZipFile]::ExtractToDirectory($steamCMDZip, $steamCMDPath)
}
cd "$steamData"
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740 -beta steamctg -betapassword $previewPass validate" "+quit"
popd