From 5969c8d58aeffb80a3290e0de05cbc1e556dc6c8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Oct 2026 14:34:39 -0400 Subject: [PATCH] Windows packaging: don't publish .wixpdb debug symbols Co-Authored-By: Claude Opus 5.5 --- packaging/windows/package.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/windows/package.ps1 b/packaging/windows/package.ps1 index 0d156aca..8cb76f11 100644 --- a/packaging/windows/package.ps1 +++ b/packaging/windows/package.ps1 @@ -79,6 +79,8 @@ Invoke-Native 'wix build' { -d "Version=$MsiVersion" -d "BinDir=$Stage" -d "IconPath=$(Join-Path $Root 'assets\app-icon\photocraft.ico')" ` -o $Msi } +# wix writes its debug symbols (.wixpdb) next to the MSI; keep them out of the release assets. +Remove-Item -Force -ErrorAction SilentlyContinue ([IO.Path]::ChangeExtension($Msi, '.wixpdb')) & (Join-Path $PSScriptRoot 'sign.ps1') $Msi # ---- portable zip ------------------------------------------------------------------------------