@echo off cd /d "%~dp0jellyfin-web" echo Installing dependencies... call npm ci --engine-strict=false echo Building local hls.js... cd /d "%~dp0jellyfin-web\hls.js" call npm run build echo Copying local hls.js build over node_modules... copy /Y "dist\hls.js" "%~dp0jellyfin-web\node_modules\hls.js\dist\hls.js" copy /Y "dist\hls.js.map" "%~dp0jellyfin-web\node_modules\hls.js\dist\hls.js.map" cd /d "%~dp0jellyfin-web" echo Building jellyfin-web (production)... call npm run build:production echo Done. Output is in the dist folder. pause