File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ set /p UserInput = Do you want to start installer? [Y/N]:
3
+ if /I " %UserInput% " neq " Y" goto End
4
+
5
+ echo .
6
+
7
+ :CheckGit
8
+ where git > nul 2 >& 1
9
+ if %errorlevel% neq 0 (
10
+ echo Git is not installed. Please install Git first.
11
+ set GIT_NOT_INSTALLED = 1
12
+ ) else (
13
+ set GIT_NOT_INSTALLED = 0
14
+ )
15
+
16
+ echo .
17
+
18
+ :Menu
19
+ echo Select appropriate menu item
20
+ echo .
21
+ echo [1] Clone repository and install requirements (requires installed Git)
22
+ echo [2] Only install requirements
23
+ echo .
24
+ set /p UserChoice = Enter the number:
25
+
26
+ echo .
27
+
28
+ if " %UserChoice% " == " 1" (
29
+ if %GIT_NOT_INSTALLED% == 1 (
30
+ echo You cannot clone the repository because Git is not installed.
31
+ echo .
32
+ goto Menu
33
+ )
34
+ call :CloneAndInstall
35
+ ) else if " %UserChoice% " == " 2" (
36
+ call :InstallDependencies
37
+ ) else (
38
+ echo Incorrect choice.
39
+ echo .
40
+ goto Menu
41
+ )
42
+
43
+ goto End
44
+
45
+ :CloneAndInstall
46
+ echo Cloning repository and installing requirements...
47
+ git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
48
+ pip install -r requirements.txt
49
+
50
+ echo .
51
+
52
+ goto End
53
+
54
+ :InstallDependencies
55
+ echo Installing requirements...
56
+ pip install -r requirements.txt
57
+
58
+ echo .
59
+
60
+ goto End
61
+
62
+ :End
63
+ echo Installation end.
64
+ echo .
65
+ pause
You can’t perform that action at this time.
0 commit comments