Install mpv on Windows via choco/scoop

This commit is contained in:
Stu 2025-12-13 12:43:33 -05:00
parent 051a17243c
commit 7f0ea613d6

View File

@ -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