-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_windows.bat
More file actions
50 lines (45 loc) · 1.3 KB
/
Copy pathinstall_windows.bat
File metadata and controls
50 lines (45 loc) · 1.3 KB
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
@echo off
echo Shattered Pixel Dungeon Trainer - Windows Installer
echo ====================================================
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed.
echo Please download and install Python from https://python.org
echo Make sure to check "Add Python to PATH" during installation.
pause
exit /b 1
) else (
echo Python is already installed.
)
REM Check if pip is available
python -m pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo pip is not available. Please reinstall Python with pip included.
pause
exit /b 1
)
REM Install required packages
echo Installing required Python packages...
python -m pip install --user pynput
REM Check if tkinter is available
echo Checking for tkinter...
python -c "import tkinter" >nul 2>&1
if %errorlevel% neq 0 (
echo tkinter not found.
echo tkinter should be included with Python. Please reinstall Python.
echo Make sure to install the full Python package, not just the minimal version.
pause
exit /b 1
) else (
echo tkinter is available.
)
echo.
echo Installation complete!
echo.
echo To run the trainer:
echo python gui_trainer.py
echo.
echo The trainer will run in the background. Press ` (backtick) to open the interface.
echo.
pause