Skip to content

Commit f3ca3e9

Browse files
committed
Update scripts/install.bat
1 parent ecb442b commit f3ca3e9

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

scripts/install.bat

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
@echo off
2-
title HacxGPT Installer
3-
setlocal
4-
5-
echo ======================================
6-
echo HacxGPT Installer for Windows
7-
echo ======================================
8-
9-
:: Check for Python
10-
echo [~] Checking for Python...
11-
python --version >nul 2>nul
12-
if %errorlevel% neq 0 (
13-
echo [!] Python is not installed or not in PATH.
14-
echo [!] Please install Python from https://www.python.org/downloads/
15-
pause
16-
exit /b
17-
)
18-
echo [+] Python found.
19-
20-
:: Create Virtual Environment
21-
echo [~] Creating Virtual Environment...
22-
if not exist ".venv" (
23-
python -m venv .venv
24-
echo [+] Virtual environment created.
25-
) else (
26-
echo [~] Virtual environment already exists.
27-
)
28-
29-
:: Activate Virtual Environment
30-
echo [~] Activating venv...
31-
call .venv\Scripts\activate
32-
if %errorlevel% neq 0 (
33-
echo [!] Failed to activate virtual environment.
34-
pause
35-
exit /b
36-
)
37-
38-
:: Upgrade PIP
39-
echo [~] Upgrading pip...
40-
python -m pip install --upgrade pip
41-
42-
:: Install Package
43-
echo [~] Installing HacxGPT...
44-
pip install -e .
45-
46-
echo.
47-
echo ======================================
48-
echo Installation Complete!
49-
echo ======================================
50-
echo.
51-
echo To run HacxGPT:
52-
echo 1. .venv\Scripts\activate
53-
echo 2. hacxgpt
54-
echo.
55-
pause
1+
@echo off
2+
title HacxGPT Installer
3+
setlocal
4+
5+
echo ======================================
6+
echo HacxGPT Installer for Windows
7+
echo ======================================
8+
9+
:: Check for Python
10+
echo [~] Checking for Python...
11+
python --version >nul 2>nul
12+
if %errorlevel% neq 0 (
13+
echo [!] Python is not installed or not in PATH.
14+
echo [!] Please install Python from https://www.python.org/downloads/
15+
pause
16+
exit /b
17+
)
18+
echo [+] Python found.
19+
20+
:: Create Virtual Environment
21+
echo [~] Creating Virtual Environment...
22+
if not exist ".venv" (
23+
python -m venv .venv
24+
echo [+] Virtual environment created.
25+
) else (
26+
echo [~] Virtual environment already exists.
27+
)
28+
29+
:: Activate Virtual Environment
30+
echo [~] Activating venv...
31+
call .venv\Scripts\activate
32+
if %errorlevel% neq 0 (
33+
echo [!] Failed to activate virtual environment.
34+
pause
35+
exit /b
36+
)
37+
38+
:: Upgrade PIP
39+
echo [~] Upgrading pip...
40+
python -m pip install --upgrade pip
41+
42+
:: Install Package
43+
echo [~] Installing HacxGPT...
44+
pip install -e .
45+
46+
echo.
47+
echo ======================================
48+
echo Installation Complete!
49+
echo ======================================
50+
echo.
51+
echo To run HacxGPT:
52+
echo 1. .venv\Scripts\activate
53+
echo 2. hacxgpt
54+
echo.
55+
pause

0 commit comments

Comments
 (0)