Last active
October 15, 2025 23:46
-
-
Save PatoFlamejanteTV/3be2546ed774a103c54bd28b634a610a to your computer and use it in GitHub Desktop.
Windows lolminer example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal | |
| REM Caminho base | |
| set BASEDIR=%USERPROFILE%\lolMiner | |
| set ZIPFILE=%USERPROFILE%\lolMiner_v1.98a_Win64.zip | |
| REM Verifica se a pasta base existe, cria se não | |
| if not exist "%BASEDIR%" mkdir "%BASEDIR%" | |
| REM Verifica se o lolMiner já está instalado | |
| if exist "%BASEDIR%\lolMiner_v1.98a_Win64\lolMiner.exe" ( | |
| echo lolMiner ja instalado. Pulando download e extracao... | |
| ) else ( | |
| echo [1/3] Baixando lolMiner... | |
| powershell -Command "Invoke-WebRequest -Uri https://github.com/Lolliedieb/lolMiner-releases/releases/download/1.98a/lolMiner_v1.98a_Win64.zip -OutFile '%ZIPFILE%'" | |
| echo [2/3] Extraindo arquivos... | |
| powershell -Command "Expand-Archive -Path '%ZIPFILE%' -DestinationPath '%BASEDIR%' -Force" | |
| ) | |
| REM Encontrar automaticamente a pasta que contém lolMiner.exe | |
| for /d %%i in ("%BASEDIR%\*") do ( | |
| if exist "%%i\lolMiner.exe" set MINERPATH=%%i | |
| ) | |
| REM Checa se achou o exe | |
| if not defined MINERPATH ( | |
| echo ERRO: nao foi possivel localizar lolMiner.exe | |
| pause | |
| exit /b | |
| ) | |
| REM Inicia o minerador | |
| echo [3/3] Iniciando minerador... | |
| cd /d "%MINERPATH%" | |
| lolMiner.exe -a TON --pool https://server1.whalestonpool.com/ --user UQDQlR7PXSGvhZuxUMKgIEcF-_zBT7ZgdNlIFkBPtcjAI_QE | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment