Add installation script for media tools and dependencies

Install mpv, yt-dlp, and cargo based on the package manager.
This commit is contained in:
Socat 2026-10-11 10:27:26 +02:00 • committed by GitHub
commit 3f8e7ab05f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
install.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
set -e
if command -v pacman >/dev/null; then
sudo pacman -S --needed --noconfirm mpv yt-dlp base-devel rust
elif command -v apt >/dev/null; then
sudo apt install -y mpv yt-dlp build-essential cargo
elif command -v dnf >/dev/null; then
sudo dnf install -y mpv yt-dlp gcc cargo
elif command -v xbps-install >/dev/null; then
sudo xbps-install -Sy mpv yt-dlp base-devel cargo
else
echo "unsupported package manager: install mpv, yt-dlp and cargo manually" >&2
exit 1
fi
cargo install --git https://github.com/socatlolmeow/drift