Skip to content

Commit

Permalink
spotify bin
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 27, 2024
1 parent 1581c98 commit 0cfab7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
Binary file added packages/librespot
Binary file not shown.
26 changes: 2 additions & 24 deletions packages/setup_spotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,7 @@
# Exit on error: stops the script immediately if any command fails.
set -e

# Install Rust using rustup
echo "Installing Rust..."

# Set RUSTUP_HOME and CARGO_HOME
export RUSTUP_HOME="/usr/bin"
export CARGO_HOME="/home/$USER/.cargo"
mkdir -p "$CARGO_HOME"

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --no-modify-path

# Source the Cargo environment to update PATH
source "$CARGO_HOME/env"

# Verify that Cargo is in the PATH
if ! command -v cargo &> /dev/null; then
echo "Cargo could not be found. Please check the installation."
exit 1
fi

echo "Installing librespot..."
cargo install librespot
cp -v /mounted-github-repo/packages/librespot /usr/bin/librespot


# Uninstall Rust
echo "Uninstalling Rust..."
rustup self uninstall -y
2 changes: 1 addition & 1 deletion services/ovos-spotify.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ After=network-online.target
[Service]
Group=ovos
UMask=002
ExecStart=%h/.cargo/bin/librespot --name raspOVOS --device-type "speaker" --initial-volume 100 --onevent "/usr/libexec/ovos-librespot"
ExecStart=/usr/bin/librespot --name raspOVOS --device-type "speaker" --initial-volume 100 --onevent "/usr/libexec/ovos-librespot"
Restart=on-failure

[Install]
Expand Down

0 comments on commit 0cfab7f

Please sign in to comment.