-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlauncher.bat
More file actions
55 lines (44 loc) · 1.02 KB
/
launcher.bat
File metadata and controls
55 lines (44 loc) · 1.02 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
51
52
53
54
55
@echo off
REM BallonsTranslator Windows entrypoint.
REM Simplified to avoid PowerShell/script parsing issues.
setlocal
cd /d "%~dp0"
if not "%~1"=="" goto :direct_launch
echo.
echo ==========================================
echo BallonsTranslator Launcher
echo ==========================================
echo.
echo [1] Start (auto-detect Python / env)
echo [2] Setup dependencies
echo [3] Start with auto-update
echo [4] Start AMD nightly mode
echo [Q] Quit
echo.
choice /C 1234Q /N /M "Select [1-4, Q]: "
set "K=%ERRORLEVEL%"
if "%K%"=="1" goto :menu_launch
if "%K%"=="2" goto :menu_setup
if "%K%"=="3" goto :menu_update
if "%K%"=="4" goto :menu_nightly
goto :end
:menu_launch
call "%~dp0launch_win.bat"
goto :finish
:menu_setup
call "%~dp0setup.bat"
goto :finish
:menu_update
call "%~dp0launch_win_with_autoupdate.bat"
goto :finish
:menu_nightly
call "%~dp0launch_win_amd_nightly.bat"
goto :finish
:direct_launch
call "%~dp0launch_win.bat" %*
:finish
set "ERR=%ERRORLEVEL%"
endlocal & exit /b %ERR%
:end
endlocal
exit /b 0