Files
axion1337.chat-gitops/docs/setup/element-setup-macos.command
T
Thore CimbalandClaude Sonnet 5 4a3d7c70a6 fix: restore correct file permissions, stop tracking .DS_Store
Almost every tracked file in the repo had drifted to mode 777 on disk
(only files created fresh this session were unaffected), and a chunk of
that drift had already been committed as spurious +x bits on plain
YAML/Markdown files (authentik.yaml, kustomization.yaml, coturn.yaml,
element-server-suite.yaml, TASKS.md, install.md, etc.) - none of these
need to be executable. Restored to 644 for regular files, 755 only for
actual scripts (postCreateCommand.sh, docker-init.sh, install-hooks.sh,
pre-commit hook, element-setup-linux.sh).

Also found element-setup-macos.command was missing +x despite having a
shebang and being meant for double-click execution on macOS - fixed.

Added .gitignore for .DS_Store and .claude/ and stopped tracking the five
.DS_Store files that had been committed by accident.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 12:00:00 +00:00

85 lines
2.1 KiB
Bash
Executable File

#!/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..."