From 0a2d82658b3f13e9060ac446282e209199d44501 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sat, 12 Apr 2025 17:10:09 +0200 Subject: [PATCH] add spotify_player --- .chezmoitemplates/zshrc_linux.tmpl | 1 + executable_install-fedora.sh | 27 +++++---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/.chezmoitemplates/zshrc_linux.tmpl b/.chezmoitemplates/zshrc_linux.tmpl index 5c98403..c5e5dd0 100644 --- a/.chezmoitemplates/zshrc_linux.tmpl +++ b/.chezmoitemplates/zshrc_linux.tmpl @@ -235,6 +235,7 @@ autoload -Uz compinit compinit eval "$(starship init zsh)" +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc" diff --git a/executable_install-fedora.sh b/executable_install-fedora.sh index 1ec8d65..4ac262e 100755 --- a/executable_install-fedora.sh +++ b/executable_install-fedora.sh @@ -87,28 +87,11 @@ else echo "cliphist ist bereits installiert, überspringe Download" fi -# Spotify Player mit Prüfung -if [[ ! -f /usr/bin/spotify_player ]]; then - # Architektur ermitteln - ARCH=$(uname -m) - if [ "$ARCH" = "aarch64" ]; then - URL="https://github.com/aome510/spotify-player/releases/download/v0.20.4/spotify_player-aarch64-unknown-linux-gnu.tar.gz" - elif [ "$ARCH" = "x86_64" ]; then - URL="https://github.com/aome510/spotify-player/releases/download/v0.20.4/spotify_player-x86_64-unknown-linux-gnu.tar.gz" - else - echo "Nicht unterstützte Architektur: $ARCH" - exit 1 - fi - - # Herunterladen und Entpacken - echo "Lade spotify_player von $URL herunter..." - curl -L "$URL" | tar -xz -C /tmp || { echo "Fehler beim Herunterladen oder Entpacken"; exit 1; } - - # Datei verschieben und ausführbar machen - sudo mv /tmp/spotify_player /usr/bin/spotify_player - sudo chmod +x /usr/bin/spotify_player - echo "spotify_player wurde auf dem System installiert" +# Homebrew mit Prüfung +if ! command -v brew &>/dev/null; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" else - echo "spotify_player ist bereits installiert, überspringe Download" + echo "Homebrew ist bereits installiert, überspringe Installation" fi +brew install spotify_player