Linux-Installation mit Desktop-Integration hinzugefügt
- install.sh: Automatisches Installations-Script • Prüft und installiert Tkinter automatisch • Erstellt Virtual Environment • Desktop-Verknüpfung im Anwendungsmenü • Launcher-Command: pdf-to-ics - uninstall.sh: Saubere Deinstallation • Entfernt alle Dateien • Optional: Benutzer-Konfiguration behalten - INSTALL.md: Technische Installations-Dokumentation - WEITERGABE.md: Benutzerfreundliche Schnellstart-Anleitung Die Anwendung kann jetzt als fertiges Paket weitergegeben werden!
This commit is contained in:
85
uninstall.sh
Executable file
85
uninstall.sh
Executable file
@@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
|
||||
###############################################################################
|
||||
# PDF zu ICS Konverter - Deinstallations-Script
|
||||
###############################################################################
|
||||
|
||||
set -e
|
||||
|
||||
# Farben
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
INSTALL_DIR="$HOME/.local/share/pdf-to-ics"
|
||||
DESKTOP_FILE="$HOME/.local/share/applications/pdf-to-ics.desktop"
|
||||
LAUNCHER="$HOME/.local/bin/pdf-to-ics"
|
||||
CONFIG_FILE="$HOME/.pdf_to_ics_config.json"
|
||||
|
||||
echo -e "${YELLOW}╔═══════════════════════════════════════════════════════════╗${NC}"
|
||||
echo -e "${YELLOW}║ PDF zu ICS Konverter - Deinstallations-Assistent ║${NC}"
|
||||
echo -e "${YELLOW}╚═══════════════════════════════════════════════════════════╝${NC}"
|
||||
echo ""
|
||||
|
||||
echo "Folgende Dateien und Verzeichnisse werden entfernt:"
|
||||
echo " • $INSTALL_DIR"
|
||||
echo " • $DESKTOP_FILE"
|
||||
echo " • $LAUNCHER"
|
||||
echo ""
|
||||
echo "Konfigurationsdatei behalten? (sie enthält Ihre letzten Verzeichnisse)"
|
||||
echo " • $CONFIG_FILE"
|
||||
echo ""
|
||||
echo -e "${RED}Möchten Sie fortfahren? (y/n)${NC}"
|
||||
read -r response
|
||||
|
||||
if [[ ! "$response" =~ ^[Yy]$ ]]; then
|
||||
echo "Deinstallation abgebrochen."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Lösche Dateien
|
||||
echo ""
|
||||
echo "Entferne Installationsdateien..."
|
||||
|
||||
if [ -d "$INSTALL_DIR" ]; then
|
||||
rm -rf "$INSTALL_DIR"
|
||||
echo -e "${GREEN}✓${NC} Installationsverzeichnis entfernt"
|
||||
fi
|
||||
|
||||
if [ -f "$DESKTOP_FILE" ]; then
|
||||
rm -f "$DESKTOP_FILE"
|
||||
echo -e "${GREEN}✓${NC} Desktop-Verknüpfung entfernt"
|
||||
fi
|
||||
|
||||
if [ -f "$LAUNCHER" ]; then
|
||||
rm -f "$LAUNCHER"
|
||||
echo -e "${GREEN}✓${NC} Launcher entfernt"
|
||||
fi
|
||||
|
||||
# Konfigurationsdatei nur entfernen wenn explizit gewünscht
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
echo ""
|
||||
echo -e "Konfigurationsdatei $CONFIG_FILE gefunden."
|
||||
echo -e "${YELLOW}Auch entfernen? (y/n)${NC}"
|
||||
read -r response
|
||||
if [[ "$response" =~ ^[Yy]$ ]]; then
|
||||
rm -f "$CONFIG_FILE"
|
||||
echo -e "${GREEN}✓${NC} Konfigurationsdatei entfernt"
|
||||
else
|
||||
echo -e "${GREEN}✓${NC} Konfigurationsdatei behalten"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Desktop-Datenbank aktualisieren
|
||||
if command -v update-desktop-database &> /dev/null; then
|
||||
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo -e "${GREEN}╔═══════════════════════════════════════════════════════════╗${NC}"
|
||||
echo -e "${GREEN}║ Deinstillation erfolgreich abgeschlossen! ║${NC}"
|
||||
echo -e "${GREEN}╚═══════════════════════════════════════════════════════════╝${NC}"
|
||||
echo ""
|
||||
echo "PDF zu ICS Konverter wurde von Ihrem System entfernt."
|
||||
echo ""
|
||||
Reference in New Issue
Block a user