Update installation instructions in README.md

Added installation instructions for Arch Linux and other distros, including dependencies and build steps.
This commit is contained in:
Socat 2026-10-11 10:09:51 +02:00 • committed by GitHub
commit ca03d20d92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,39 +37,47 @@ Stream your favourite music from YouTube Music — all in one client, in your te
## Installation ## Installation
### Dependencies ### Arch Linux (AUR)
```bash
yay -S driftmusic-git
```
Any AUR helper works (`paru -S driftmusic-git`), or build it by hand:
```bash
git clone https://aur.archlinux.org/driftmusic-git.git
cd driftmusic-git
makepkg -si
```
`mpv` and `yt-dlp` are installed automatically.
### Other distros
Install the dependencies:
- [mpv](https://mpv.io/) — audio playback - [mpv](https://mpv.io/) — audio playback
- [yt-dlp](https://github.com/yt-dlp/yt-dlp) — YouTube stream extraction - [yt-dlp](https://github.com/yt-dlp/yt-dlp) — YouTube stream extraction
- [Rust](https://rustup.rs/) (build only) - [Rust](https://rustup.rs/) (build only)
Install them with your package manager, e.g. on Arch: Then build from source:
```
sudo pacman -S mpv yt-dlp
```
### Build & install
```bash ```bash
git clone https://github.com/socatlolmeow/drift.git git clone https://github.com/socatlolmeow/drift.git
cd drift cd drift
cargo build --release cargo build --release
```
Then copy the binary to somewhere on your `$PATH`:
```bash
sudo cp target/release/drift /usr/local/bin/ sudo cp target/release/drift /usr/local/bin/
``` ```
Or install directly with cargo: Or install directly with cargo:
```bash ```bash
cargo install --path . cargo install --path .
``` ```
This installs `drift` to `~/.cargo/bin/`, which is on your `$PATH` if you installed Rust via [rustup](https://rustup.rs/). This installs `drift` to `~/.cargo/bin/`, which is on your `$PATH` if you installed Rust via [rustup](https://rustup.rs/).
---
## Star History ## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=socatlolmeow/drift&type=Date)](https://star-history.com/#socatlolmeow/drift) [![Star History Chart](https://api.star-history.com/svg?repos=socatlolmeow/drift&type=Date)](https://star-history.com/#socatlolmeow/drift)