add tari-gbt(rust)
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
@echo off
|
||||
title Minotari Miner
|
||||
|
||||
rem Verify arguments
|
||||
if ["%base_path%"]==[""] (
|
||||
echo Problem with "base_path" environment variable: '%base_path%'
|
||||
pause
|
||||
exit /b 10101
|
||||
)
|
||||
if not exist "%base_path%" (
|
||||
echo Path as per "base_path" environment variable not found: '%base_path%'
|
||||
pause
|
||||
exit /b 10101
|
||||
)
|
||||
if ["%my_exe%"]==[""] (
|
||||
echo Problem with "my_exe" environment variable: '%my_exe%'
|
||||
pause
|
||||
exit /b 10101
|
||||
)
|
||||
|
||||
rem Find the miner executable
|
||||
if exist "%my_exe_path%\%my_exe%" (
|
||||
set miner=%my_exe_path%\%my_exe%
|
||||
echo.
|
||||
echo Using "%my_exe%" found in %my_exe_path%
|
||||
echo.
|
||||
) else (
|
||||
if exist "%base_path%\%my_exe%" (
|
||||
set miner=%base_path%\%my_exe%
|
||||
echo.
|
||||
echo Using "%my_exe%" found in base_path
|
||||
echo.
|
||||
) else (
|
||||
set FOUND=
|
||||
for %%X in (%my_exe%) do (set FOUND=%%~$PATH:X)
|
||||
if defined FOUND (
|
||||
set miner=%my_exe%
|
||||
echo.
|
||||
echo Using "%my_exe%" found in system path:
|
||||
where "%my_exe%"
|
||||
echo.
|
||||
) else (
|
||||
echo.
|
||||
echo Runtime "%my_exe%" not found in %my_exe_path%, base_path or the system path
|
||||
echo.
|
||||
pause
|
||||
exit /b 10101
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
echo.
|
||||
echo.
|
||||
|
||||
cd "%base_path%"
|
||||
"%miner%" --base-path "%base_path%"
|
||||
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
|
||||
echo.
|
||||
echo Set up environment variables
|
||||
echo ----------------------------
|
||||
rem These are the miner executable and SQLite dynamic link library names
|
||||
set my_exe=minotari_miner.exe
|
||||
|
||||
rem The default location for the miner executable
|
||||
set my_exe_path=%~dp0
|
||||
if %my_exe_path:~-1%==\ set my_exe_path=%my_exe_path:~0,-1%
|
||||
echo my_exe_path = %my_exe_path%
|
||||
|
||||
rem The base folder where the database and log files will be located
|
||||
set base_path=%~dp0..
|
||||
echo base_path = %base_path%
|
||||
|
||||
echo.
|
||||
echo Run the miner
|
||||
echo ----------------------
|
||||
call "%my_exe_path%\source_miner_env.bat"
|
||||
|
||||
goto END:
|
||||
|
||||
|
||||
:END
|
||||
echo.
|
||||
pause
|
||||
Binary file not shown.
Reference in New Issue
Block a user