whisper/dist/install_ffmpeg_with_choco.bat
zzhou 051e3b2702 2025/10/17
删除了一些不需要的文件
2025-10-17 13:43:25 +08:00

17 lines
613 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
setlocal
rem 安装 Chocolatey使用 PowerShell 执行官方安装脚本)
powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
rem 使用 choco 安装 ffmpeg
rem 若当前会话尚未刷新 PATH优先尝试通过完整路径调用否则退回到在 CMD 中执行命令
if exist "%ProgramData%\chocolatey\bin\choco.exe" (
"%ProgramData%\chocolatey\bin\choco.exe" install ffmpeg -y
) else (
cmd /c "choco install ffmpeg -y"
)
endlocal