The Free Software Media System - Server Backend & API
Build releases without debug
Thomas Büttnerda61998ad611
diff --git a/Dockerfile b/Dockerfileindex 978b0d5409..af570ba655 100644--- a/Dockerfile+++ b/Dockerfile@@ -7,6 +7,7 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=1RUN dotnet publish \--configuration release \--output /jellyfin \+ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" \Jellyfin.ServerFROM jellyfin/ffmpeg as ffmpegdiff --git a/Dockerfile.arm b/Dockerfile.armindex 9d1c30619b..9316245c50 100644--- a/Dockerfile.arm+++ b/Dockerfile.arm@@ -21,6 +21,7 @@ RUN dotnet publish \-r linux-arm \--configuration release \--output /jellyfin \+ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" \Jellyfin.Serverdiff --git a/Dockerfile.arm64 b/Dockerfile.arm64index e61aaa167c..5c67f85c9b 100644--- a/Dockerfile.arm64+++ b/Dockerfile.arm64@@ -22,6 +22,7 @@ RUN dotnet publish \-r linux-arm64 \--configuration release \--output /jellyfin \+ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" \Jellyfin.Serverdiff --git a/deployment/common.build.sh b/deployment/common.build.shindex c191ec2a1b..5bffa1a732 100755--- a/deployment/common.build.sh+++ b/deployment/common.build.sh@@ -36,9 +36,9 @@ build_jellyfin()echo -e "${CYAN}Building jellyfin in '${ROOT}' for ${DOTNETRUNTIME} with configuration ${CONFIG} and output directory '${OUTPUT_DIR}'.${NC}"if [[ $DOTNETRUNTIME == 'framework' ]]; then- dotnet publish "${ROOT}" --configuration "${CONFIG}" --output="${OUTPUT_DIR}"+ dotnet publish "${ROOT}" --configuration "${CONFIG}" --output="${OUTPUT_DIR}" "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"else- dotnet publish "${ROOT}" --configuration "${CONFIG}" --output="${OUTPUT_DIR}" --self-contained --runtime ${DOTNETRUNTIME}+ dotnet publish "${ROOT}" --configuration "${CONFIG}" --output="${OUTPUT_DIR}" --self-contained --runtime ${DOTNETRUNTIME} "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"fiEXIT_CODE=$?if [ $EXIT_CODE -eq 0 ]; thendiff --git a/deployment/debian-package-x64/pkg-src/rules b/deployment/debian-package-x64/pkg-src/rulesindex ce98cb8f86..646f3621fe 100644--- a/deployment/debian-package-x64/pkg-src/rules+++ b/deployment/debian-package-x64/pkg-src/rules@@ -16,7 +16,8 @@ override_dh_auto_test:override_dh_clistrip:override_dh_auto_build:- dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME) Jellyfin.Server+ dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME) \+ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Serveroverride_dh_auto_clean:dotnet clean -maxcpucount:1 --configuration $(CONFIG) Jellyfin.Server || truediff --git a/deployment/fedora-package-x64/pkg-src/jellyfin.spec b/deployment/fedora-package-x64/pkg-src/jellyfin.specindex 451a304b76..35045ee669 100644--- a/deployment/fedora-package-x64/pkg-src/jellyfin.spec+++ b/deployment/fedora-package-x64/pkg-src/jellyfin.spec@@ -49,7 +49,8 @@ Jellyfin is a free software media system that puts you in control of managing an%installexport DOTNET_CLI_TELEMETRY_OPTOUT=1export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1-dotnet publish --configuration Release --output='%{buildroot}%{_libdir}/jellyfin' --self-contained --runtime %{dotnet_runtime} Jellyfin.Server+dotnet publish --configuration Release --output='%{buildroot}%{_libdir}/jellyfin' --self-contained --runtime %{dotnet_runtime} \+ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Server%{__install} -D -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE%{__install} -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/override.conf%{__install} -D -m 0644 Jellyfin.Server/Resources/Configuration/logging.json %{buildroot}%{_sysconfdir}/%{name}/logging.json@@ -73,7 +74,6 @@ EOF%{_libdir}/%{name}/jellyfin-web/*%attr(755,root,root) %{_bindir}/%{name}%{_libdir}/%{name}/*.json-%{_libdir}/%{name}/*.pdb%{_libdir}/%{name}/*.dll%{_libdir}/%{name}/*.so%{_libdir}/%{name}/*.a