Make Windows build skip ffmpeg download when already on PATH

This commit is contained in:
Stu Leak 2025-12-07 12:41:46 -05:00
parent 53b1b839c5
commit 30146295b1

View File

@ -104,17 +104,14 @@ case "$OS" in
echo " Or: .\scripts\setup-windows.ps1 -Portable" echo " Or: .\scripts\setup-windows.ps1 -Portable"
echo "" echo ""
# Offer to run setup automatically if ffmpeg -version >/dev/null 2>&1 && ffprobe -version >/dev/null 2>&1; then
echo "Would you like to download FFmpeg now? (y/n)" echo "FFmpeg detected on PATH. Skipping bundled download."
read -r response
if [[ "$response" =~ ^[Yy]$ ]]; then
if command -v powershell &> /dev/null; then
powershell -ExecutionPolicy Bypass -File "$SCRIPT_DIR/setup-windows.ps1" -Portable
else else
cmd.exe /c setup-windows.bat echo "FFmpeg not detected on PATH."
fi echo "Next step: Get FFmpeg"
else echo " Run: setup-windows.bat"
echo "You can run setup-windows.bat later to get FFmpeg." echo " Or: .\\scripts\\setup-windows.ps1 -Portable"
echo "You can skip if FFmpeg is already installed elsewhere."
fi fi
else else
echo "✓ Build complete: VideoTools.exe" echo "✓ Build complete: VideoTools.exe"