Files
ffmpeg-gui/build.bat
T
2026-07-29 10:46:19 +08:00

43 lines
824 B
Batchfile

@echo off
chcp 65001 >nul
echo === FFmpeg GUI Build Script ===
echo.
cd /d "%~dp0"
echo [1/3] Installing frontend dependencies...
cd frontend
call npm install
if %errorlevel% neq 0 (
echo ERROR: npm install failed
pause
exit /b %errorlevel%
)
echo [2/3] Building frontend...
call npm run build
if %errorlevel% neq 0 (
echo ERROR: frontend build failed
pause
exit /b %errorlevel%
)
cd ..
echo [3/3] Cleaning icon cache...
if exist "build\windows\icon.ico" del /q "build\windows\icon.ico"
if exist "*-res.syso" del /q "*-res.syso"
echo [4/4] Building Wails application...
wails build -clean -platform windows/amd64
if %errorlevel% neq 0 (
echo ERROR: wails build failed
pause
exit /b %errorlevel%
)
echo.
echo === Build complete! ===
echo Output: build\bin\ffmpeg-gui.exe
echo.
pause