syncmaster3 / start_enhanced.bat
aseelflihan's picture
move actual project files into root folder
1138072
@echo off
echo ===============================================
echo SyncMaster Enhanced - Quick Start
echo منصة المزامنة الذكية - البدء السريع
echo ===============================================
echo.
echo ✅ All system tests passed! / جميع الاختبارات نجحت!
echo 🚀 Starting SyncMaster Enhanced...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ ERROR: Python is not installed or not in PATH
echo خطأ: Python غير مثبت أو غير موجود في PATH
echo Please install Python 3.8+ from python.org
pause
exit /b 1
)
REM Check if .env file exists
if not exist ".env" (
echo ⚠️ WARNING: .env file not found!
echo تحذير: ملف .env غير موجود!
echo Creating sample .env file...
echo GEMINI_API_KEY=your_api_key_here > .env
echo Please add your Gemini API key to .env file
echo يرجى إضافة مفتاح Gemini API إلى ملف .env
pause
exit /b 1
)
echo 🔍 Running system test...
echo تشغيل اختبار النظام...
python test_system.py
if errorlevel 1 (
echo ❌ System test failed! Please fix issues first.
echo فشل اختبار النظام! يرجى إصلاح المشاكل أولاً.
pause
exit /b 1
)
echo.
echo ✅ System test passed! Starting application...
echo نجح اختبار النظام! بدء تشغيل التطبيق...
echo.
REM Use debug startup for better error handling
echo 🚀 Starting with advanced debugging...
echo بدء التشغيل مع التشخيص المتقدم...
python start_debug.py
echo.
echo 👋 Application stopped. Press any key to exit.
echo تم إيقاف التطبيق. اضغط أي زر للخروج.
pause