-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
42 lines (35 loc) · 999 Bytes
/
run.bat
File metadata and controls
42 lines (35 loc) · 999 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
@echo off
chcp 65001 >nul
setlocal
set "PYTHONDONTWRITEBYTECODE=1"
if "%OPENCLUELY_HOME%"=="" if defined LOCALAPPDATA set "OPENCLUELY_HOME=%LOCALAPPDATA%\Opencluely"
echo.
echo =====================================
echo Opencluely
echo =====================================
echo.
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python was not found on PATH.
echo Install Python 3.10+ from https://www.python.org/downloads/
pause
exit /b 1
)
echo Checking desktop dependencies...
python -B -c "import PySide6" >nul 2>&1
if %errorlevel% neq 0 (
echo [INFO] Installing Python dependencies from requirements.txt
python -m pip install -r requirements.txt
if %errorlevel% neq 0 (
echo [ERROR] Dependency installation failed.
pause
exit /b 1
)
)
echo Launching Opencluely...
if defined OPENCLUELY_HOME echo Runtime files will be written under: %OPENCLUELY_HOME%
echo.
python -B main.py
echo.
echo Application finished.
pause