Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Download latest uMod for Rust
- Write-Host Determining latest uMod release . . .
- $tag = (Invoke-WebRequest https://umod.org/games/rust.json | ConvertFrom-Json)[0].latest_release_version
- if (Test-Path -Path temp\uMod$tag.zip) {
- Write-Host uMod $tag is already up to date.
- } else {
- Remove-Item .\temp\*.zip -Force
- Write-Host Downloading uMod $tag . . .
- Invoke-WebRequest https://umod.org/games/rust/download -Out .\temp\uMod$tag.zip
- Write-Host Extracting uMod $tag . . .
- Expand-Archive -DestinationPath . .\temp\uMod$tag.zip -Force
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement