Add stardew for upcoming 1.6 update
This commit is contained in:
parent
a463742cf6
commit
ccc631b2ac
20
SteamToggleUpdate/ToggleStardewUpdates.ps1
Normal file
20
SteamToggleUpdate/ToggleStardewUpdates.ps1
Normal file
@ -0,0 +1,20 @@
|
||||
$appId = 413150
|
||||
$networkLocation = "https://raw.githubusercontent.com/IsaacShoebottom/Scripts/master/SteamToggleUpdate/ToggleUpdates.ps1"
|
||||
|
||||
# Test if ToggleUpdates.ps1 exists and invoke it if it does
|
||||
If (Test-Path -Path ".\ToggleUpdates.ps1" -PathType Leaf) {
|
||||
.\ToggleUpdates.ps1 $appId
|
||||
}
|
||||
Else {
|
||||
# construct temp path
|
||||
$env:temp = [System.IO.Path]::GetTempPath()
|
||||
$tempPath = $env:temp + "\ToggleUpdates.ps1"
|
||||
|
||||
# Download the network script
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($networkLocation, $tempPath)
|
||||
# Invoke the network script
|
||||
&$tempPath $appId
|
||||
# Delete the network script
|
||||
Remove-Item -Path $tempPath
|
||||
}
|
Loading…
Reference in New Issue
Block a user