-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlauncher.bat
More file actions
54 lines (44 loc) · 1.15 KB
/
launcher.bat
File metadata and controls
54 lines (44 loc) · 1.15 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
@echo off
title Kavio AI Launcher
color 0b
echo ==================================================
echo Kavio AI Companion - Desktop Loader
echo ==================================================
echo.
:: Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python is not installed or not in your PATH.
echo Please install Python from python.org and try again.
pause
exit /b
)
:: Install Dependencies
echo [1/2] Checking and installing libraries...
python -m pip install --upgrade google-generativeai SpeechRecognition pillow requests sounddevice numpy customtkinter packaging
if %errorlevel% neq 0 goto install_error
goto install_success
:install_error
echo.
echo [WARNING] Library installation reported errors.
echo Please ensure you are running Python 3.10, 3.11, or 3.12.
echo.
pause
goto launch_app
:install_success
echo [OK] Libraries ready.
goto launch_app
:launch_app
:: Run the App
echo [2/2] Launching Kavio...
python kavio.py
if %errorlevel% neq 0 goto app_error
goto end
:app_error
echo.
echo [ERROR] The application crashed. See error above.
pause
:end
echo.
echo Application closed.
pause