Add support for Debug releases

Allows specifying --debug to build.py to build Debug builds of the
server, facilitating easier debugging. This is then called by default
for weekly builds.
This commit is contained in:
Joshua M. Boniface
2025-04-11 16:50:23 -04:00
parent f651f3b5c6
commit 34ba5153c4
5 changed files with 41 additions and 28 deletions

View File

@@ -29,7 +29,10 @@ case ${BUILD_TYPE} in
;;
esac
export DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet publish Jellyfin.Server --configuration Release ${RUNTIME} --output ${BUILD_DIR}/jellyfin/ -p:DebugSymbols=false -p:DebugType=none ${APPHOST}
if [[ -z ${CONFIG} ]]; then
CONFIG="Release"
fi
dotnet publish Jellyfin.Server --configuration ${CONFIG} ${RUNTIME} --output ${BUILD_DIR}/jellyfin/ -p:DebugSymbols=false -p:DebugType=none ${APPHOST}
popd
# Build web