AutoBackups/setup.bat

52 lines
1.3 KiB
Batchfile

@echo off
echo AutoBackups - Setup Script
echo ============================
echo.
echo [1/4] Activating conda environment...
call conda activate autobackups
if errorlevel 1 (
echo Error: Could not activate conda environment 'autobackups'
echo.
echo Creating new environment...
call conda create --name autobackups python=3.12 -y
if errorlevel 1 (
echo Error: Could not create conda environment
pause
exit /b 1
)
call conda activate autobackups
)
echo [2/4] Installing Python dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo Error: Could not install dependencies
pause
exit /b 1
)
echo [3/4] Checking favicon file...
if not exist "static\icons\favicon.png" (
echo Warning: favicon.png not found in static\icons\
echo System tray icon may not display correctly
)
echo [4/4] Testing system tray functionality...
python -c "import pystray, PIL; print('✓ System tray dependencies OK')"
if errorlevel 1 (
echo Error: System tray dependencies not working
pause
exit /b 1
)
echo.
echo ✓ Setup completed successfully!
echo.
echo Usage:
echo Regular mode: python src\app.py
echo System tray mode: python launch_tray.py
echo Or use: launch_with_tray.bat
echo.
pause