@echo off setlocal set REPO_DIR=%~dp0jellyfin set OUTPUT_DIR=%~dp0jellyfin-build-output echo Building Jellyfin Server for Debian (linux-x64)... echo. cd /d "%REPO_DIR%" dotnet publish Jellyfin.Server/Jellyfin.Server.csproj ^ -c Release ^ -f net10.0 ^ -r linux-x64 ^ --self-contained true ^ -o "%OUTPUT_DIR%" if %ERRORLEVEL% NEQ 0 ( echo. echo BUILD FAILED pause exit /b 1 ) echo. echo Build complete. Output: %OUTPUT_DIR% echo Transfer this folder to your Debian server and run with: ./jellyfin --webdir /path/to/jellyfin-web/dist pause