mirror of
https://github.com/socatlolmeow/drift.git
synced 2026-11-03 19:27:19 +00:00
Add installation script for media tools and dependencies
Install mpv, yt-dlp, and cargo based on the package manager.
This commit is contained in:
parent
ca03d20d92
commit
3f8e7ab05f
1 changed files with 17 additions and 0 deletions
17
install.sh
Normal file
17
install.sh
Normal 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
|
||||||
Loading…
Reference in a new issue