Réorganisation des composants et centralisation des logs

- Déplace ProtonUp-Qt après utils (Goverlay) dans les menus de sélection
- Met à jour le README pour refléter le nouvel ordre des composants
- Centralise tous les logs dans un fichier unique (gaming_installer.log)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-27 05:51:27 +02:00
parent 074f90b280
commit bd391eb16b
2 changed files with 138 additions and 9 deletions

View File

@@ -16,6 +16,12 @@ Script d'installation graphique pour un environnement gaming complet sur Debian.
- **Lutris** - Gestionnaire de jeux - **Lutris** - Gestionnaire de jeux
- **RetroArch** - Multi-émulateur (Flatpak) - **RetroArch** - Multi-émulateur (Flatpak)
**Utilitaires Gaming :**
- **Goverlay** - Interface graphique pour configurer mangohud
- **ProtonUp-Qt** - Gestionnaire versions Proton (Flatpak)
- **gamemode** - Optimisation automatique des performances gaming
- **mangohud** - Overlay d'affichage des performances (FPS, CPU, GPU)
**Compatibilité Windows :** **Compatibilité Windows :**
- **Wine + Winetricks** - Compatibilité Windows - **Wine + Winetricks** - Compatibilité Windows
- **Bottles** - Gestionnaire Wine moderne (Flatpak) - **Bottles** - Gestionnaire Wine moderne (Flatpak)
@@ -26,10 +32,6 @@ Script d'installation graphique pour un environnement gaming complet sur Debian.
- **TeamSpeak** - Communication vocale (Flatpak) - **TeamSpeak** - Communication vocale (Flatpak)
- **Mumble** - Communication vocale libre - **Mumble** - Communication vocale libre
**Utilitaires Gaming :**
- **gamemode** - Optimisation automatique des performances gaming
- **mangohud** - Overlay d'affichage des performances (FPS, CPU, GPU)
- **goverlay** - Interface graphique pour configurer mangohud
**Outils de Gestion :** **Outils de Gestion :**
- **Flatseal** - Gestionnaire permissions Flatpak - **Flatseal** - Gestionnaire permissions Flatpak

View File

@@ -20,7 +20,7 @@
# Permet à l'utilisateur de choisir quoi installer via une fenêtre # Permet à l'utilisateur de choisir quoi installer via une fenêtre
# Configuration des logs d'erreur # Configuration des logs d'erreur
LOG_FILE="./gaming_installer_$(date +%Y%m%d_%H%M%S).log" LOG_FILE="./gaming_installer.log"
# Variable globale pour stocker le mot de passe sudo # Variable globale pour stocker le mot de passe sudo
GLOBAL_SUDO_PASSWORD="" GLOBAL_SUDO_PASSWORD=""
@@ -391,7 +391,8 @@ show_install_selection() {
FALSE "heroic" "🎮 Heroic - Epic Games & GOG" \ FALSE "heroic" "🎮 Heroic - Epic Games & GOG" \
FALSE "lutris" "🎮 Lutris - Gestionnaire de jeux" \ FALSE "lutris" "🎮 Lutris - Gestionnaire de jeux" \
FALSE "retroarch" "🕹️ RetroArch - Multi-émulateur (Flatpak)" \ FALSE "retroarch" "🕹️ RetroArch - Multi-émulateur (Flatpak)" \
FALSE "utils" "⚡ Utilitaires Gaming - gamemode, mangohud, goverlay" \ FALSE "utils" "⚡ Goverlay - affichage performances (FPS, CPU, GPU)" \
FALSE "protonup" "🔄 ProtonUp-Qt - Gestionnaire versions Proton (Flatpak)" \
FALSE "wine" "🍷 Wine + Winetricks - Compatibilité Windows" \ FALSE "wine" "🍷 Wine + Winetricks - Compatibilité Windows" \
FALSE "bottles" "🍷 Bottles - Gestionnaire Wine moderne (Flatpak)" \ FALSE "bottles" "🍷 Bottles - Gestionnaire Wine moderne (Flatpak)" \
FALSE "discord" "💬 Discord - Chat vocal & texte (Flatpak)" \ FALSE "discord" "💬 Discord - Chat vocal & texte (Flatpak)" \
@@ -416,7 +417,8 @@ show_uninstall_selection() {
FALSE "heroic" "🎮 Heroic - Epic Games & GOG" \ FALSE "heroic" "🎮 Heroic - Epic Games & GOG" \
FALSE "lutris" "🎮 Lutris - Gestionnaire de jeux" \ FALSE "lutris" "🎮 Lutris - Gestionnaire de jeux" \
FALSE "retroarch" "🕹️ RetroArch - Multi-émulateur (Flatpak)" \ FALSE "retroarch" "🕹️ RetroArch - Multi-émulateur (Flatpak)" \
FALSE "utils" "⚡ Utilitaires Gaming - gamemode, mangohud, goverlay" \ FALSE "utils" "⚡ Goverlay - affichage performances (FPS, CPU, GPU)" \
FALSE "protonup" "🔄 ProtonUp-Qt - Gestionnaire versions Proton (Flatpak)" \
FALSE "wine" "🍷 Wine + Winetricks - Compatibilité Windows" \ FALSE "wine" "🍷 Wine + Winetricks - Compatibilité Windows" \
FALSE "bottles" "🍷 Bottles - Gestionnaire Wine moderne (Flatpak)" \ FALSE "bottles" "🍷 Bottles - Gestionnaire Wine moderne (Flatpak)" \
FALSE "discord" "💬 Discord - Chat vocal & texte (Flatpak)" \ FALSE "discord" "💬 Discord - Chat vocal & texte (Flatpak)" \
@@ -527,6 +529,62 @@ install_steam() {
fi fi
} }
# Fonction d'installation ProtonUp-Qt
install_protonup() {
log_info "Début de l'installation de ProtonUp-Qt"
# Vérifier si ProtonUp-Qt est déjà installé
if flatpak list | grep -q "net.davidotek.pupgui2"; then
log_info "ProtonUp-Qt déjà installé"
zenity --info --title="Déjà installé" --text="ProtonUp-Qt est déjà installé sur le système."
return
fi
# Utiliser le mot de passe global ou demander un nouveau
if ! use_global_password_or_ask "ProtonUp-Qt"; then
return
fi
(
echo "40" ; echo "# Vérification des sources Flathub..."
if ! ensure_flathub_sources; then
echo "# Erreur lors de la configuration de Flathub"
exit 1
fi
echo "70" ; echo "# Installation de ProtonUp-Qt via Flatpak..."
echo "$password" | timeout $TIMEOUT_INSTALL sudo -S flatpak install -y flathub net.davidotek.pupgui2 >> "$LOG_FILE" 2>&1
if [ $? -ne 0 ]; then
log_error "Échec de l'installation de ProtonUp-Qt"
echo "# Erreur lors de l'installation de ProtonUp-Qt"
exit 1
fi
echo "100" ; echo "# Vérification de l'installation..."
) | zenity --progress \
--title="Installation de ProtonUp-Qt" \
--text="Initialisation..." \
--percentage=0 \
--width=400 \
--auto-close
# Vérifier le code de sortie du processus
if [ ${PIPESTATUS[0]} -ne 0 ]; then
show_error_logs "Échec de l'installation de ProtonUp-Qt"
return
fi
# Vérifier si l'installation a réussi
if flatpak list | grep -q "net.davidotek.pupgui2"; then
log_info "Installation ProtonUp-Qt réussie"
INSTALLED_APPS+=("ProtonUp-Qt")
INSTALLATION_MESSAGES+=("ProtonUp-Qt a été installé avec succès via Flatpak")
else
log_error "ProtonUp-Qt non trouvé après installation"
show_error_logs "ProtonUp-Qt non trouvé après installation"
fi
}
# Fonction d'installation Lutris # Fonction d'installation Lutris
install_lutris() { install_lutris() {
log_info "Début de l'installation de Lutris" log_info "Début de l'installation de Lutris"
@@ -1628,6 +1686,67 @@ uninstall_steam() {
fi fi
} }
# Fonction de désinstallation ProtonUp-Qt
uninstall_protonup() {
log_info "Début de la désinstallation de ProtonUp-Qt"
# Vérifier si ProtonUp-Qt est installé
if ! flatpak list | grep -q "net.davidotek.pupgui2"; then
log_info "ProtonUp-Qt non installé"
zenity --info --title="Non installé" --text="ProtonUp-Qt n'est pas installé sur le système."
return
fi
# Demander confirmation
if ! zenity --question --title="Confirmation" --text="Êtes-vous sûr de vouloir désinstaller ProtonUp-Qt ?"; then
return
fi
# Demander le mot de passe sudo
password=$(zenity --password --title="Authentification - Désinstallation ProtonUp-Qt" --text="Mot de passe sudo requis pour désinstaller ProtonUp-Qt:")
if [ $? -eq 1 ]; then
return
fi
# Vérifier le mot de passe sudo
if ! check_sudo_password "$password"; then
return
fi
(
echo "50" ; echo "# Désinstallation de ProtonUp-Qt..."
echo "$password" | timeout $TIMEOUT_APT sudo -S flatpak uninstall -y net.davidotek.pupgui2 >> "$LOG_FILE" 2>&1
if [ $? -ne 0 ]; then
log_error "Échec de la désinstallation de ProtonUp-Qt"
echo "# Erreur lors de la désinstallation de ProtonUp-Qt"
exit 1
fi
echo "100" ; echo "# Vérification de la désinstallation..."
) | zenity --progress \
--title="Désinstallation de ProtonUp-Qt" \
--text="Initialisation..." \
--percentage=0 \
--width=400 \
--auto-close
# Vérifier le code de sortie du processus
if [ ${PIPESTATUS[0]} -ne 0 ]; then
show_error_logs "Échec de la désinstallation de ProtonUp-Qt"
return
fi
# Vérifier si la désinstallation a réussi
if ! flatpak list | grep -q "net.davidotek.pupgui2"; then
log_info "Désinstallation ProtonUp-Qt réussie"
zenity --info --title="Succès" --text="ProtonUp-Qt a été désinstallé avec succès !"
else
log_error "Échec de la désinstallation de ProtonUp-Qt"
show_error_logs "Échec de la désinstallation de ProtonUp-Qt"
fi
}
# Fonction de désinstallation Bottles # Fonction de désinstallation Bottles
uninstall_bottles() { uninstall_bottles() {
log_info "Début de la désinstallation de Bottles" log_info "Début de la désinstallation de Bottles"
@@ -2594,6 +2713,9 @@ if [ $exit_code -eq 1 ] && [ "$selection" = "Désinstaller" ]; then
"steam") "steam")
uninstall_steam uninstall_steam
;; ;;
"protonup")
uninstall_protonup
;;
"heroic") "heroic")
uninstall_heroic uninstall_heroic
;; ;;
@@ -2655,6 +2777,7 @@ else
for component in "${SELECTED[@]}"; do for component in "${SELECTED[@]}"; do
case $component in case $component in
"steam") app_list="$app_list\n• Steam" ;; "steam") app_list="$app_list\n• Steam" ;;
"protonup") app_list="$app_list\n• ProtonUp-Qt" ;;
"heroic") app_list="$app_list\n• Heroic Game Launcher" ;; "heroic") app_list="$app_list\n• Heroic Game Launcher" ;;
"lutris") app_list="$app_list\n• Lutris" ;; "lutris") app_list="$app_list\n• Lutris" ;;
"bottles") app_list="$app_list\n• Bottles" ;; "bottles") app_list="$app_list\n• Bottles" ;;
@@ -2668,7 +2791,7 @@ else
"mumble") app_list="$app_list\n• Mumble" ;; "mumble") app_list="$app_list\n• Mumble" ;;
"flatseal") app_list="$app_list\n• Flatseal" ;; "flatseal") app_list="$app_list\n• Flatseal" ;;
"nvidia") app_list="$app_list\n• NVIDIA + CUDA" ;; "nvidia") app_list="$app_list\n• NVIDIA + CUDA" ;;
"utils") app_list="$app_list\n• Utilitaires Gaming" ;; "utils") app_list="$app_list\n• Goverlay (FPS, CPU, GPU, température)" ;;
esac esac
done done
@@ -2693,6 +2816,9 @@ else
"steam") "steam")
install_steam install_steam
;; ;;
"protonup")
install_protonup
;;
"heroic") "heroic")
install_heroic install_heroic
;; ;;
@@ -2741,6 +2867,7 @@ else
if [ "$BATCH_INSTALL_MODE" = "true" ]; then if [ "$BATCH_INSTALL_MODE" = "true" ]; then
case $component in case $component in
"steam") next_batch_app "Steam" ;; "steam") next_batch_app "Steam" ;;
"protonup") next_batch_app "ProtonUp-Qt" ;;
"heroic") next_batch_app "Heroic Game Launcher" ;; "heroic") next_batch_app "Heroic Game Launcher" ;;
"lutris") next_batch_app "Lutris" ;; "lutris") next_batch_app "Lutris" ;;
"bottles") next_batch_app "Bottles" ;; "bottles") next_batch_app "Bottles" ;;
@@ -2754,7 +2881,7 @@ else
"mumble") next_batch_app "Mumble" ;; "mumble") next_batch_app "Mumble" ;;
"flatseal") next_batch_app "Flatseal" ;; "flatseal") next_batch_app "Flatseal" ;;
"nvidia") next_batch_app "NVIDIA + CUDA" ;; "nvidia") next_batch_app "NVIDIA + CUDA" ;;
"utils") next_batch_app "Utilitaires Gaming" ;; "utils") next_batch_app "Goverlay (performances)" ;;
esac esac
fi fi
done done