Skip to content

Commit

Permalink
Add RetroArch updater script
Browse files Browse the repository at this point in the history
  • Loading branch information
alfrix authored Jan 24, 2018
1 parent 9044556 commit ae3311c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions RARCH_updater.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Retroarch updater for Windows
#
# Alfredo Monclús (2017)

cls

$buildbot="http://buildbot.libretro.com/nightly/windows/x86_64"
$rarch_location="$env:appdata\RetroArch\"

Start-BitsTransfer -Source $buildbot/RetroArch.7z -Destination $env:temp -TransferType Download

# Check if downloaded
if ($(Test-Path "$env:temp\RetroArch.7z"))
{
& 'C:\Program Files\7-Zip\7z.exe' x "$env:temp\RetroArch.7z" -o$rarch_location -y
rm $env:temp\RetroArch.7z
}
else
{
Write-Host "FAILED to download" -ForegroundColor Red
}
sleep 3
pause

0 comments on commit ae3311c

Please sign in to comment.