32 lines
946 B
Bash
Executable File
32 lines
946 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Proton-GE Auto-Installer für NixOS
|
|
|
|
set -e
|
|
|
|
STEAM_COMPAT_DIR="$HOME/.steam/root/compatibilitytools.d"
|
|
mkdir -p "$STEAM_COMPAT_DIR"
|
|
|
|
echo "🎮 Installing Proton-GE..."
|
|
|
|
# Hole neueste Proton-GE Version
|
|
LATEST_RELEASE=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest \
|
|
| grep -oP '"tag_name": "\K[^"]*' | head -1)
|
|
|
|
if [ -z "$LATEST_RELEASE" ]; then
|
|
echo "❌ Fehler: Konnte Proton-GE nicht finden"
|
|
exit 1
|
|
fi
|
|
|
|
DOWNLOAD_URL="https://github.com/GloriousEggroll/proton-ge-custom/releases/download/$LATEST_RELEASE/Proton-GE-${LATEST_RELEASE}.tar.gz"
|
|
|
|
echo "📥 Download: $LATEST_RELEASE"
|
|
cd "$STEAM_COMPAT_DIR"
|
|
wget -q --show-progress "$DOWNLOAD_URL"
|
|
|
|
echo "📦 Extracting..."
|
|
tar -xzf "Proton-GE-${LATEST_RELEASE}.tar.gz"
|
|
rm "Proton-GE-${LATEST_RELEASE}.tar.gz"
|
|
|
|
echo "✅ Proton-GE $LATEST_RELEASE installiert!"
|
|
echo "🔄 Steam neu starten und Compatibility-Einstellung prüfen"
|