Remove ffplay.exe from Windows build workflow

Updated the build-windows.yml workflow to exclude ffplay.exe from verification and distribution steps, as only ffmpeg.exe and ffprobe.exe are required by the application.
This commit is contained in:
oop7
2025-11-29 13:41:06 +02:00
parent 15451f7715
commit b8804210dc
+3 -9
View File
@@ -183,10 +183,9 @@ jobs:
Write-Host "FFmpeg binaries found at: $ffmpegBinPath" Write-Host "FFmpeg binaries found at: $ffmpegBinPath"
echo "FFMPEG_PATH=$ffmpegBinPath" >> $env:GITHUB_ENV echo "FFMPEG_PATH=$ffmpegBinPath" >> $env:GITHUB_ENV
# Verify files exist # Verify files exist (only ffmpeg and ffprobe are needed)
$ffmpegExe = Join-Path $ffmpegBinPath "ffmpeg.exe" $ffmpegExe = Join-Path $ffmpegBinPath "ffmpeg.exe"
$ffprobeExe = Join-Path $ffmpegBinPath "ffprobe.exe" $ffprobeExe = Join-Path $ffmpegBinPath "ffprobe.exe"
$ffplayExe = Join-Path $ffmpegBinPath "ffplay.exe"
if (Test-Path $ffmpegExe) { if (Test-Path $ffmpegExe) {
Write-Host "[OK] ffmpeg.exe found" Write-Host "[OK] ffmpeg.exe found"
@@ -198,11 +197,6 @@ jobs:
} else { } else {
Write-Host "[ERROR] ffprobe.exe missing" Write-Host "[ERROR] ffprobe.exe missing"
} }
if (Test-Path $ffplayExe) {
Write-Host "[OK] ffplay.exe found"
} else {
Write-Host "[ERROR] ffplay.exe missing"
}
} else { } else {
Write-Host "Error: Could not find FFmpeg directory after extraction" Write-Host "Error: Could not find FFmpeg directory after extraction"
exit 1 exit 1
@@ -232,13 +226,13 @@ jobs:
} }
# Copy FFmpeg binaries into dist folder post-build (more reliable than CLI include) # Copy FFmpeg binaries into dist folder post-build (more reliable than CLI include)
# Note: ffplay.exe is excluded as it's not needed by the application
if ($env:FFMPEG_PATH) { if ($env:FFMPEG_PATH) {
$destDir = "dist\YTSage-FFmpeg" $destDir = "dist\YTSage-FFmpeg"
$ffmpegExe = Join-Path $env:FFMPEG_PATH "ffmpeg.exe" $ffmpegExe = Join-Path $env:FFMPEG_PATH "ffmpeg.exe"
$ffprobeExe = Join-Path $env:FFMPEG_PATH "ffprobe.exe" $ffprobeExe = Join-Path $env:FFMPEG_PATH "ffprobe.exe"
$ffplayExe = Join-Path $env:FFMPEG_PATH "ffplay.exe"
foreach ($file in @($ffmpegExe, $ffprobeExe, $ffplayExe)) { foreach ($file in @($ffmpegExe, $ffprobeExe)) {
if (Test-Path $file) { if (Test-Path $file) {
$name = Split-Path $file -Leaf $name = Split-Path $file -Leaf
Copy-Item $file -Destination (Join-Path $destDir $name) -Force Copy-Item $file -Destination (Join-Path $destDir $name) -Force