File size: 799 Bytes
898ed62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env bash
# ============================
# MarkitDown — Launcher Mac/Linux
# ============================

set -e

# Vérifier Python
if ! command -v python3 &>/dev/null; then
    echo "Python 3 n'est pas installé."
    echo "Veuillez installer Python 3.9+ depuis https://python.org"
    exit 1
fi

# Vérifier / créer le venv
if [ ! -d "venv" ]; then
    echo "Création de l'environnement virtuel..."
    python3 -m venv venv
fi
echo "Installation / mise à jour des dépendances..."
source venv/bin/activate
pip install -r requirements.txt

echo ""
echo "Lancement de MarkitDown WebApp..."
echo ""

# Ouvrir le navigateur (macOS/Linux)
case "$(uname)" in
    Darwin) open http://localhost:5000 ;;
    Linux)  xdg-open http://localhost:5000 2>/dev/null || true ;;
esac

python app.py