-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstart.bat
More file actions
53 lines (44 loc) · 1019 Bytes
/
start.bat
File metadata and controls
53 lines (44 loc) · 1019 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
REM CharacterGen Launch Script
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Python is not found! Please install Python 3.x
pause
exit /b 1
)
REM Check if virtual environment exists
if not exist venv (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
call venv\Scripts\activate
REM Explicitly check and install required packages
python -c "import PIL" >nul 2>&1
if errorlevel 1 (
echo Installing Pillow...
pip install Pillow
)
python -c "import yaml" >nul 2>&1
if errorlevel 1 (
echo Installing PyYAML...
pip install pyyaml
)
python -c "import PyQt6" >nul 2>&1
if errorlevel 1 (
echo Installing PyQt6...
pip install PyQt6
)
python -c "import requests" >nul 2>&1
if errorlevel 1 (
echo Installing requests...
pip install requests
)
REM Launch application
python main.py
if errorlevel 1 (
echo Application crashed! Check the logs for details.
pause
)
deactivate