forked from dibend/thermohash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
62 lines (56 loc) · 1.74 KB
/
install.bat
File metadata and controls
62 lines (56 loc) · 1.74 KB
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
@echo off
REM ThermoHash Optimized Installation Script for Windows
echo === ThermoHash Optimized Installation ===
echo This script will install ThermoHash with ML optimization support
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Python is required but not found. Please install Python 3.8+ from https://python.org
echo Make sure to check "Add Python to PATH" during installation
pause
exit /b 1
)
REM Check if grpcurl is installed
grpcurl --version >nul 2>&1
if errorlevel 1 (
echo grpcurl is required but not found.
echo Please download grpcurl from: https://github.com/fullstorydev/grpcurl/releases
echo Extract grpcurl.exe to a folder in your PATH or the same directory as this script
pause
exit /b 1
)
REM Create virtual environment
echo Creating Python virtual environment...
python -m venv thermohash_env
if errorlevel 1 (
echo Failed to create virtual environment
pause
exit /b 1
)
REM Activate virtual environment and install dependencies
echo Installing Python dependencies...
call thermohash_env\Scripts\activate.bat
python -m pip install --upgrade pip
pip install -r requirements.txt
if errorlevel 1 (
echo Failed to install dependencies
pause
exit /b 1
)
echo.
echo === Installation Complete ===
echo.
echo Next steps:
echo 1. Edit config.json with your miner details and location
echo 2. Test the application: thermohash_env\Scripts\python thermohash_optimized.py
echo 3. To run automatically, create a scheduled task or run at startup
echo.
echo Configuration file: config.json
echo Requirements file: requirements.txt
echo Main script: thermohash_optimized.py
echo.
echo To run ThermoHash:
echo thermohash_env\Scripts\python thermohash_optimized.py
echo.
pause