#!/bin/sh # Builds Audiphi and installs it for the current user (~/.local), with an app-menu entry. set -e cd "$(dirname "$0")" PREFIX="${PREFIX:-$HOME/.local}" cargo build --release install -Dm755 target/release/audiphi "$PREFIX/bin/audiphi" install -Dm644 assets/audiphi.svg "$PREFIX/share/icons/hicolor/scalable/apps/audiphi.svg" install -Dm644 packaging/audiphi.desktop "$PREFIX/share/applications/audiphi.desktop" echo "Installed to $PREFIX/bin/audiphi (needs yt-dlp, ffmpeg, mpv's libmpv and, for YouTube, deno)."