docs: add Element Desktop setup scripts for Windows, macOS, and Linux
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
#!/bin/bash
|
||||
# Element Desktop Setup Script for macOS
|
||||
# Doppelklick im Finder zum Ausführen
|
||||
|
||||
echo "========================================"
|
||||
echo "Element Desktop Konfiguration Setup"
|
||||
echo "========================================"
|
||||
echo ""
|
||||
|
||||
# Config-Verzeichnis
|
||||
CONFIG_DIR="$HOME/Library/Application Support/Element"
|
||||
CONFIG_FILE="$CONFIG_DIR/config.json"
|
||||
|
||||
# Erstelle Verzeichnis falls nicht vorhanden
|
||||
if [ ! -d "$CONFIG_DIR" ]; then
|
||||
echo "Erstelle Element Verzeichnis..."
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
fi
|
||||
|
||||
# Erstelle config.json
|
||||
echo "Erstelle config.json..."
|
||||
cat > "$CONFIG_FILE" << 'EOF'
|
||||
{
|
||||
"configUrl": "https://axion1337.chat/config.json",
|
||||
"brand": "aXion1337.Chat",
|
||||
"default_theme": "aXion1337 Dark",
|
||||
"show_labs_settings": true,
|
||||
"features": {
|
||||
"feature_qr_code_login": true
|
||||
},
|
||||
"setting_defaults": {
|
||||
"custom_themes": []
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
echo "Config erstellt: $CONFIG_FILE"
|
||||
echo ""
|
||||
|
||||
# Versuche Element zu installieren/starten
|
||||
echo "Überprüfe Element Desktop Installation..."
|
||||
|
||||
# Methode 1: Über Homebrew (falls installiert)
|
||||
if command -v brew &> /dev/null; then
|
||||
if brew list element &> /dev/null; then
|
||||
echo "Element über Homebrew gefunden. Starte Element..."
|
||||
open -a Element
|
||||
sleep 2
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Methode 2: Direkte App im Applications Folder
|
||||
if [ -d "/Applications/Element.app" ]; then
|
||||
echo "Element im Applications Folder gefunden. Starte Element..."
|
||||
open -a Element
|
||||
sleep 2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Methode 3: Homebrew Installation
|
||||
if command -v brew &> /dev/null; then
|
||||
echo ""
|
||||
echo "Installiere Element über Homebrew..."
|
||||
brew install element --cask
|
||||
echo "Starte Element..."
|
||||
sleep 2
|
||||
open -a Element
|
||||
exit 0
|
||||
else
|
||||
echo ""
|
||||
echo "⚠️ Homebrew nicht gefunden. Bitte installiere zuerst:"
|
||||
echo "https://brew.sh"
|
||||
echo ""
|
||||
echo "Oder installiere Element manuell:"
|
||||
echo "https://element.io/download"
|
||||
echo ""
|
||||
echo "✅ Deine config.json wurde erstellt unter:"
|
||||
echo "$CONFIG_FILE"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# Warte auf Benutzer-Input vor dem Schließen
|
||||
read -p "Drücke Enter zum Beenden..."
|
||||
Reference in New Issue
Block a user