Kaleido-Desktop/scripts/fetch-libmpv.ps1
Elijah 00d72e70f4 Create Kaleido Desktop, a cinematic Plex client for Windows
Tauri 2 shell with a React/TypeScript interface and libmpv playback composed
beneath the web view (DirectComposition on Windows). Shared code with per-OS
platform modules and configs so macOS and Linux can follow.

- Plex sign-in (browser, plex.tv/link or manual), server selection, Plex Home
- Home, Movies and TV Shows (Discover, Library, Collections), search, people
- Title pages with logos, ratings, cast, extras, seasons and episodes
- Direct play with Plex conversion fallback, tracks, markers, autoplay
- Metadata editing, artwork, fix match, refresh, analyze and deletion
- Resumable offline downloads
- App settings and Plex server administration with a live dashboard
- Signed updater feed and Forgejo CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:26:37 -07:00

15 lines
911 B
PowerShell

# Downloads libmpv for Windows into vendor/mpv/windows.
# Source: https://github.com/shinchiro/mpv-winbuild-cmake (the builds linked from mpv.io).
param([string]$Tag = "20261021", [string]$Build = "mpv-dev-x86_64-20261021-git-e471496c56")
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot
$dest = Join-Path $root "vendor\mpv\windows"
if (Test-Path (Join-Path $dest "libmpv-2.dll")) { Write-Host "libmpv already present in $dest"; exit 0 }
$tmp = Join-Path ([IO.Path]::GetTempPath()) ("kaleido-mpv-" + [guid]::NewGuid())
New-Item -ItemType Directory -Force $tmp, $dest | Out-Null
$archive = Join-Path $tmp "mpv-dev.7z"
Invoke-WebRequest "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/$Tag/$Build.7z" -OutFile $archive
& 7z x $archive "-o$tmp\x" -y | Out-Null
Copy-Item "$tmp\x\libmpv-2.dll" $dest
Remove-Item -Recurse -Force $tmp
Write-Host "libmpv installed to $dest"