From 7f0ea613d61f016b8b480fdeba676273b176b782 Mon Sep 17 00:00:00 2001 From: Stu Date: Sat, 13 Dec 2025 12:43:33 -0500 Subject: [PATCH] Install mpv on Windows via choco/scoop --- scripts/install-deps-windows.ps1 | 42 +++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/scripts/install-deps-windows.ps1 b/scripts/install-deps-windows.ps1 index dfa6d68..3d18ead 100644 --- a/scripts/install-deps-windows.ps1 +++ b/scripts/install-deps-windows.ps1 @@ -3,7 +3,8 @@ param( [switch]$UseScoop = $false, - [switch]$SkipFFmpeg = $false + [switch]$SkipFFmpeg = $false, + [switch]$SkipMPV = $false ) Write-Host "════════════════════════════════════════════════════════════════" -ForegroundColor Cyan @@ -85,8 +86,20 @@ function Install-ViaChocolatey { Write-Host "Installing ffmpeg..." -ForegroundColor Yellow choco install -y ffmpeg } else { - Write-Host "✓ ffmpeg already installed" -ForegroundColor Green + Write-Host "✓ ffmpeg already installed" -ForegroundColor Green + } +} + + # Install mpv + if (-not $SkipMPV) { + if (-not (Test-Command mpv)) { + Write-Host "Installing mpv..." -ForegroundColor Yellow + choco install -y mpv + } else { + Write-Host "✓ mpv already installed" -ForegroundColor Green } + } else { + Write-Host "ℹ️ mpv skipped (use -SkipMPV:$false to install)" -ForegroundColor Cyan } Write-Host "✓ Chocolatey installation complete" -ForegroundColor Green @@ -143,9 +156,21 @@ function Install-ViaScoop { if (-not (Test-Command ffmpeg)) { Write-Host "Installing ffmpeg..." -ForegroundColor Yellow scoop install ffmpeg + } else { + Write-Host "✓ ffmpeg already installed" -ForegroundColor Green + } +} + + # Install mpv + if (-not $SkipMPV) { + if (-not (Test-Command mpv)) { + Write-Host "Installing mpv..." -ForegroundColor Yellow + scoop install mpv } else { - Write-Host "✓ ffmpeg already installed" -ForegroundColor Green + Write-Host "✓ mpv already installed" -ForegroundColor Green } + } else { + Write-Host "ℹ️ mpv skipped (use -SkipMPV:$false to install)" -ForegroundColor Cyan } Write-Host "✓ Scoop installation complete" -ForegroundColor Green @@ -229,6 +254,17 @@ if (Test-Command ffmpeg) { } } +if (Test-Command mpv) { + $mpvVersion = mpv --version | Select-Object -First 1 + Write-Host "✓ mpv: $mpvVersion" -ForegroundColor Green +} else { + if ($SkipMPV) { + Write-Host "ℹ️ mpv skipped (use -SkipMPV:$false to install)" -ForegroundColor Cyan + } else { + Write-Host "⚠️ mpv not found in PATH (restart terminal or install with -SkipMPV:$false)" -ForegroundColor Yellow + } +} + if (Test-Command git) { $gitVersion = git --version Write-Host "✓ Git: $gitVersion" -ForegroundColor Green