-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathrun.bat
More file actions
33 lines (29 loc) · 906 Bytes
/
Copy pathrun.bat
File metadata and controls
33 lines (29 loc) · 906 Bytes
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
@echo off
setlocal enableextensions
cd /d "%~dp0"
set "PYCMD="
py -3.10 -c "import sys" >NUL 2>&1 && set "PYCMD=py -3.10"
if not defined PYCMD (
py -3 -c "import sys" >NUL 2>&1 && set "PYCMD=py -3"
)
if not defined PYCMD (
python -c "import sys" >NUL 2>&1 && set "PYCMD=python"
)
if not defined PYCMD (
echo Python 3.10+ not found. Please install from https://www.python.org/downloads/
exit /b 1
)
echo Checking Python packages...
%PYCMD% -c "import selenium, webdriver_manager" >NUL 2>&1
if errorlevel 1 (
echo Installing required packages: selenium, webdriver-manager
%PYCMD% -m pip install --upgrade pip
%PYCMD% -m pip install customtkinter pillow selenium webdriver-manager undetected-chromedriver
if errorlevel 1 (
echo Failed to install dependencies. Check your internet connection and try again.
exit /b 1
)
)
echo Launching Kick Drop Miner...
%PYCMD% main.py
endlocal