diff --git a/.github/workflows/build-macos-arm-installer.yml b/.github/workflows/build-macos-arm-installer.yml index 2b0f25aa..7fbde51c 100644 --- a/.github/workflows/build-macos-arm-installer.yml +++ b/.github/workflows/build-macos-arm-installer.yml @@ -94,7 +94,9 @@ jobs: --self-contained \ -o dist/Cleanuparr.app/Contents/MacOS \ /p:PublishSingleFile=true \ - /p:Version=${{ env.appVersion }} + /p:Version=${{ env.appVersion }} \ + /p:DebugType=None \ + /p:DebugSymbols=false - name: Verify architecture run: | diff --git a/.github/workflows/build-macos-intel-installer.yml b/.github/workflows/build-macos-intel-installer.yml index caa2ed84..61546292 100644 --- a/.github/workflows/build-macos-intel-installer.yml +++ b/.github/workflows/build-macos-intel-installer.yml @@ -94,7 +94,9 @@ jobs: --self-contained \ -o dist/Cleanuparr.app/Contents/MacOS \ /p:PublishSingleFile=true \ - /p:Version=${{ env.appVersion }} + /p:Version=${{ env.appVersion }} \ + /p:DebugType=None \ + /p:DebugSymbols=false - name: Verify architecture run: | diff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.yml index 73ce3c74..3843ac76 100644 --- a/.github/workflows/build-windows-installer.yml +++ b/.github/workflows/build-windows-installer.yml @@ -86,7 +86,7 @@ jobs: - name: Build Windows executable run: | - dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime win-x64 --self-contained -o dist /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime win-x64 --self-contained -o dist /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugType=None /p:DebugSymbols=false - name: Create sample configuration shell: pwsh diff --git a/.github/workflows/build_executable.yml b/.github/workflows/build_executable.yml index 59869de0..42956112 100644 --- a/.github/workflows/build_executable.yml +++ b/.github/workflows/build_executable.yml @@ -87,19 +87,19 @@ jobs: cp -r code/frontend/dist/ui/browser/* code/backend/${{ env.executableName }}/wwwroot/ - name: Build win-x64 - run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime win-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-win-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime win-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-win-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugSymbols=false - name: Build linux-x64 - run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime linux-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-linux-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime linux-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-linux-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugSymbols=false - name: Build linux-arm64 - run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime linux-arm64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-linux-arm64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime linux-arm64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-linux-arm64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugSymbols=false - name: Build osx-x64 - run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime osx-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-osx-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime osx-x64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-osx-amd64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugSymbols=false - name: Build osx-arm64 - run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime osx-arm64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-osx-arm64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} + run: dotnet publish code/backend/${{ env.executableName }}/${{ env.executableName }}.csproj -c Release --runtime osx-arm64 --self-contained -o artifacts/${{ env.githubRepositoryName }}-osx-arm64 /p:PublishSingleFile=true /p:Version=${{ env.appVersion }} /p:DebugSymbols=false - name: Create sample configuration files run: | diff --git a/code/Dockerfile b/code/Dockerfile index 1099f03c..09841c1e 100644 --- a/code/Dockerfile +++ b/code/Dockerfile @@ -37,7 +37,8 @@ RUN dotnet publish ./backend/Cleanuparr.Api/Cleanuparr.Api.csproj \ -c Release \ -o /app/publish \ /p:Version=${VERSION} \ - /p:PublishSingleFile=true + /p:PublishSingleFile=true \ + /p:DebugSymbols=false # Runtime stage FROM mcr.microsoft.com/dotnet/aspnet:9.0-bookworm-slim