-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.bat
More file actions
46 lines (40 loc) · 1.05 KB
/
start.bat
File metadata and controls
46 lines (40 loc) · 1.05 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
@echo off
chcp 65001 >nul
echo SimpleTranslator Launcher
echo.
REM Check Python installation
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python not found. Please install Python 3.13+
pause
exit /b 1
)
echo Using Python:
python --version
REM Check dependencies
echo Checking dependencies...
python -c "import openai, tkinter, pyperclip; print('Core dependencies OK')" 2>nul
if %errorlevel% neq 0 (
echo Dependencies not fully installed. Installing...
python -m pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Failed to install dependencies. Please check network connection.
pause
exit /b 1
)
)
echo.
echo Choose startup mode:
echo 1. Simple Mode (Recommended - Most Stable)
echo 2. Full Mode (System tray + Hotkeys)
echo.
set /p choice="Choose mode (1/2, default 1): "
if "%choice%"=="2" (
echo Starting Full Mode...
echo Note: If you encounter threading errors, please use Simple Mode
python main.py
) else (
echo Starting Simple Mode...
python main_simple.py
)
pause