23 lines
656 B
Batchfile
23 lines
656 B
Batchfile
set "ROOT=%~dp0"
|
|
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
|
|
|
|
set "DIR_FFMPG=%ROOT%\ffmpeg-master-latest-win64-gpl-shared"
|
|
set "DIST_PUBLIC=%DIST_DIR%\public"
|
|
set "DIST_APP=%DIST_PUBLIC%"
|
|
set "FRONTEND_DIR=%ROOT%\frontend"
|
|
set "BACKEND_DIR=%ROOT%\backend"
|
|
|
|
echo [1/4] Cleaning FFMPEG
|
|
if exist "%DIR_FFMPG%" (
|
|
rmdir /S /Q "%DIR_FFMPG%"
|
|
}
|
|
|
|
echo [2/4] Download YT-DLP
|
|
curl -L -o yt-dlp.exe https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
|
|
|
echo [3/4] Download FFMPEG
|
|
curl -L -o ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip
|
|
|
|
echo [4/4] Unzip FFMPEG
|
|
uinzip ffmpeg.zip
|