File size: 3,108 Bytes
2771d8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
@echo off
REM Script de instalação automática do emulador de jogos
REM Este script será executado após a instalação do Windows
echo Instalando emulador de jogos RetroArch...
REM Criar diretório para downloads
mkdir C:\Emulators 2>nul
cd C:\Emulators
REM Baixar RetroArch (emulador multi-sistema)
echo Baixando RetroArch...
powershell -Command "Invoke-WebRequest -Uri 'https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/RetroArch.7z' -OutFile 'RetroArch.7z'"
REM Verificar se o download foi bem-sucedido
if exist RetroArch.7z (
echo Extraindo RetroArch...
powershell -Command "Expand-Archive -Path 'RetroArch.7z' -DestinationPath '.' -Force"
echo RetroArch instalado com sucesso!
) else (
echo Erro ao baixar RetroArch. Tentando método alternativo...
REM Método alternativo: baixar instalador
powershell -Command "Invoke-WebRequest -Uri 'https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/RetroArch-setup.exe' -OutFile 'RetroArch-setup.exe'"
if exist RetroArch-setup.exe (
echo Executando instalador do RetroArch...
start /wait RetroArch-setup.exe /S
)
)
REM Baixar alguns cores (emuladores) populares
echo Baixando cores de emuladores...
cd C:\Emulators
REM Criar diretório para cores
mkdir cores 2>nul
REM Baixar cores populares (SNES, NES, Game Boy, etc.)
echo Baixando cores...
powershell -Command "$cores = @('snes9x_libretro.dll', 'fceumm_libretro.dll', 'gambatte_libretro.dll', 'mupen64plus_next_libretro.dll'); foreach ($core in $cores) { Invoke-WebRequest -Uri \"https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/$core\" -OutFile \"cores\$core\" }"
REM Criar atalho na área de trabalho
echo Criando atalho na área de trabalho...
if exist "C:\Emulators\retroarch.exe" (
powershell -Command "$WshShell = New-Object -ComObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('$env:USERPROFILE\Desktop\RetroArch.lnk'); $Shortcut.TargetPath = 'C:\Emulators\retroarch.exe'; $Shortcut.Save()"
)
REM Instalar Chocolatey para facilitar instalação de outros emuladores
echo Instalando Chocolatey...
powershell -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"
REM Instalar emuladores adicionais via Chocolatey
echo Instalando emuladores adicionais...
choco install -y pcsx2 dolphin-emu mame --ignore-checksums 2>nul || echo Chocolatey ainda não está pronto, você pode instalar manualmente depois
REM Configurar firewall para permitir RDP (se necessário)
echo Configurando firewall...
netsh advfirewall firewall add rule name="RDP" dir=in action=allow protocol=TCP localport=3389
echo.
echo ========================================
echo Instalação concluída!
echo ========================================
echo RetroArch está disponível em C:\Emulators
echo Você pode encontrar o atalho na área de trabalho
echo ========================================
echo.
pause |