diff --git a/RARCH_updater.ps1 b/RARCH_updater.ps1 new file mode 100644 index 0000000..9086d7e --- /dev/null +++ b/RARCH_updater.ps1 @@ -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 \ No newline at end of file