-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
138 lines (122 loc) · 3.73 KB
/
Copy pathsetup.bat
File metadata and controls
138 lines (122 loc) · 3.73 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
@echo off
echo.
echo ================================================================================
echo HelperTools Quick Setup
echo ================================================================================
echo.
echo Welcome to HelperTools! This script will help you set up the system.
echo.
:: Check if running from correct directory
if not exist "%~dp0main.bat" (
echo [91mError: Please run this script from the HelperTools directory![0m
pause
exit /b 1
)
set "HELPERTOOLS_DIR=%~dp0"
cd /d "%HELPERTOOLS_DIR%"
echo Step 1: Checking prerequisites...
echo.
:: Check Python
echo Checking Python...
python --version >nul 2>&1
if errorlevel 1 (
echo [91m✗ Python is NOT installed[0m
echo.
echo Please install Python 3.8 or higher from:
echo https://www.python.org/downloads/
echo.
echo Make sure to check "Add Python to PATH" during installation!
pause
exit /b 1
) else (
python --version
echo [92m✓ Python is installed[0m
)
echo.
:: Check Node.js (optional)
echo Checking Node.js (optional)...
node --version >nul 2>&1
if errorlevel 1 (
echo [93m⚠ Node.js is NOT installed (optional)[0m
echo Web server features will not be available.
echo You can install it later from: https://nodejs.org/
) else (
node --version
echo [92m✓ Node.js is installed[0m
)
echo.
echo ================================================================================
echo.
echo Step 2: Adding HelperTools to PATH...
echo.
echo To use HelperTools from anywhere, you need to add it to your PATH.
echo.
echo Current HelperTools location:
echo %HELPERTOOLS_DIR%
echo.
echo [93mIMPORTANT:[0m After this setup, you need to:
echo 1. Open System Environment Variables
echo 2. Edit "Path" in User Variables
echo 3. Add: %HELPERTOOLS_DIR%
echo 4. Click OK to save
echo 5. Restart your terminal
echo.
echo Would you like to open Environment Variables settings now?
set /p "openenv=Open settings? (y/n): "
if /i "%openenv%"=="y" (
rundll32 sysdm.cpl,EditEnvironmentVariables
echo.
echo [92mEnvironment Variables window opened![0m
echo Please add the HelperTools path manually.
echo.
pause
)
echo.
echo ================================================================================
echo.
echo Step 3: Installing dependencies...
echo.
set /p "install=Install Python dependencies now? (y/n): "
if /i "%install%"=="y" (
echo.
echo Installing dependencies...
call "%HELPERTOOLS_DIR%commands\install.bat"
) else (
echo.
echo [93mSkipped dependency installation.[0m
echo You can install them later by running: hts install
)
echo.
echo ================================================================================
echo.
echo Step 4: Creating configuration...
echo.
if not exist "%HELPERTOOLS_DIR%config\settings.json" (
echo Creating default configuration...
call "%HELPERTOOLS_DIR%commands\config.bat"
echo [92m✓ Configuration created[0m
) else (
echo [92m✓ Configuration already exists[0m
)
echo.
echo ================================================================================
echo Setup Complete!
echo ================================================================================
echo.
echo Next steps:
echo 1. Add HelperTools to PATH (if not done yet)
echo 2. Restart your terminal
echo 3. Type 'hts' to start HelperTools
echo 4. Type 'help' to see available commands
echo.
echo Quick start:
echo hts - Start HelperTools
echo hts help - Show help
echo hts brahma - Launch AI assistant
echo hts server web - Start web interface
echo.
echo For more information, read README.md
echo.
echo [92mThank you for installing HelperTools![0m
echo.
pause