From f3ac160ef596fb4396ecacbb7fc86d256e9563ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Sun, 10 May 2026 10:54:04 -0400 Subject: [PATCH 1/2] Reduce Windows release package size Trim the bundled pinget single-file publish and disable ReadyToRun for that helper so it no longer embeds a large untrimmed runtime payload. Also remove oversized PDBs recursively from the staged Windows release package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-release.yml | 2 +- src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj | 2 +- src/UniGetUI/UniGetUI.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6f787d3503..ba2dfaf7e6 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -197,7 +197,7 @@ jobs: Get-ChildItem $PublishDir | Move-Item -Destination "unigetui_bin" -Force $MaxShippedPdbSizeBytes = 1MB - $PdbsToRemove = Get-ChildItem "unigetui_bin" -Filter "*.pdb" -File | Where-Object { + $PdbsToRemove = Get-ChildItem "unigetui_bin" -Filter "*.pdb" -File -Recurse | Where-Object { $_.Length -gt $MaxShippedPdbSizeBytes } diff --git a/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj b/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj index 2d8609ab5b..a63071a514 100644 --- a/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj +++ b/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj @@ -45,7 +45,7 @@ diff --git a/src/UniGetUI/UniGetUI.csproj b/src/UniGetUI/UniGetUI.csproj index c58a2508e7..9118b1d659 100644 --- a/src/UniGetUI/UniGetUI.csproj +++ b/src/UniGetUI/UniGetUI.csproj @@ -93,7 +93,7 @@ Date: Sun, 10 May 2026 11:19:45 -0400 Subject: [PATCH 2/2] Keep ReadyToRun for bundled pinget Keep the bundled pinget helper trimmed, but allow Release ReadyToRun to remain enabled for startup performance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj | 2 +- src/UniGetUI/UniGetUI.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj b/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj index a63071a514..bc185e5bdc 100644 --- a/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj +++ b/src/UniGetUI.Avalonia/UniGetUI.Avalonia.csproj @@ -45,7 +45,7 @@ diff --git a/src/UniGetUI/UniGetUI.csproj b/src/UniGetUI/UniGetUI.csproj index 9118b1d659..7f1bb695f7 100644 --- a/src/UniGetUI/UniGetUI.csproj +++ b/src/UniGetUI/UniGetUI.csproj @@ -93,7 +93,7 @@