File size: 1,787 Bytes
6609c06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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