-
Notifications
You must be signed in to change notification settings - Fork 4
/
installer.bat
66 lines (52 loc) · 1.2 KB
/
installer.bat
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
@echo off
set /p UserInput=Do you want to start installer? [Y/N]:
if /I "%UserInput%" neq "Y" goto End
echo.
:CheckGit
where git >nul 2>&1
if %errorlevel% neq 0 (
echo Git is not installed. Please install Git first.
set GIT_NOT_INSTALLED=1
) else (
set GIT_NOT_INSTALLED=0
)
echo.
:Menu
echo Select appropriate menu item
echo.
echo [1] Clone repository and install requirements (requires installed Git)
echo [2] Only install requirements
echo.
set /p UserChoice=Enter the number:
echo.
if "%UserChoice%"=="1" (
if %GIT_NOT_INSTALLED%==1 (
echo You cannot clone the repository because Git is not installed.
echo.
goto Menu
)
call :CloneAndInstall
) else if "%UserChoice%"=="2" (
call :InstallDependencies
) else (
echo Incorrect choice.
echo.
goto Menu
)
goto End
:CloneAndInstall
echo Cloning repository and installing requirements...
git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
cd dpulse
pip install -r requirements.txt
echo.
goto End
:InstallDependencies
echo Installing requirements...
pip install -r requirements.txt
echo.
goto End
:End
echo Installation end.
echo.
pause