forked from BigPizzaV3/CodexPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
58 lines (51 loc) · 1.06 KB
/
Copy pathsetup.bat
File metadata and controls
58 lines (51 loc) · 1.06 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
56
57
58
@echo off
setlocal
cd /d "%~dp0"
:menu
cls
echo ========================================
echo Codex++ Setup
echo ========================================
echo.
echo [1] Install Codex++
echo [2] Uninstall Codex++
echo [3] Exit
echo.
set /p choice=Please select an option [1-3]:
if "%choice%"=="1" goto install
if "%choice%"=="2" goto uninstall
if "%choice%"=="3" goto end
echo.
echo Invalid choice.
pause
goto menu
:install
echo.
echo Installing Python package...
python -m pip install -e .
if errorlevel 1 goto error
echo.
echo Installing Codex++ shortcut and uninstall entry...
python -m codex_session_delete setup
if errorlevel 1 goto error
echo.
echo Codex++ installed successfully.
echo You can launch it from the Codex++ desktop shortcut.
pause
goto end
:uninstall
echo.
echo Uninstalling Codex++ shortcut and uninstall entry...
python -m codex_session_delete remove
if errorlevel 1 goto error
echo.
echo Codex++ uninstalled successfully.
pause
goto end
:error
echo.
echo Operation failed. Please check the error output above.
pause
exit /b 1
:end
endlocal