mirror of
https://github.com/FluxaMedia/fluxa-desktop.git
synced 2026-07-26 20:02:09 +00:00
- Render backend now sources prebuilt libmpv from KhooLy/mpv (gpu-next), fetched via src-tauri/fetch-libmpv.sh; video-sync switched to display-resample with vsync-paced render loops on all platforms. - CI (build.yml) updated to fetch the fork instead of building/bundling mpv per-platform. - Fix: next-episode auto-skip countdown kept ticking while paused. - Fix: addon HTTP fetches had no timeout, so a hung (not just refused) connection could block the home feed load forever, leaving a blank screen with no error. - Fix: Nuvio offline banner overlapped the player's top bar instead of pushing it down. - Add F11 as a fullscreen toggle in the player, alongside F. - Restyle Skip Intro/Outro button: flat surface instead of native button chrome bleeding through, icon, hover/focus state, progress bar.
36 lines
1 KiB
Bash
Executable file
36 lines
1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Downloads the gpu-next-patched libmpv build for the current platform from
|
|
# https://github.com/KhooLy/mpv releases and unpacks it into src-tauri/lib/.
|
|
#
|
|
# Usage: ./src-tauri/fetch-libmpv.sh [tag]
|
|
# Defaults to the latest release if no tag is given.
|
|
|
|
set -euo pipefail
|
|
|
|
REPO="KhooLy/mpv"
|
|
TAG="${1:-latest}"
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
LIB_DIR="$SCRIPT_DIR/lib"
|
|
|
|
case "$(uname -s)" in
|
|
Linux*) ASSET="libmpv-linux-x86_64.zip" ;;
|
|
Darwin*) ASSET="libmpv-macos-universal.zip" ;;
|
|
MINGW*|MSYS*|CYGWIN*) ASSET="libmpv-windows-x86_64.zip" ;;
|
|
*) echo "unrecognized platform $(uname -s)" >&2; exit 1 ;;
|
|
esac
|
|
|
|
if [[ "$TAG" == "latest" ]]; then
|
|
URL="https://github.com/$REPO/releases/latest/download/$ASSET"
|
|
else
|
|
URL="https://github.com/$REPO/releases/download/$TAG/$ASSET"
|
|
fi
|
|
|
|
mkdir -p "$LIB_DIR"
|
|
TMP="$(mktemp -d)"
|
|
trap 'rm -rf "$TMP"' EXIT
|
|
|
|
echo "Downloading $URL"
|
|
curl -fL "$URL" -o "$TMP/$ASSET"
|
|
unzip -o "$TMP/$ASSET" -d "$LIB_DIR"
|
|
|
|
echo "libmpv installed into $LIB_DIR"
|