build-windows-debug: don't hash SHA256SUMS itself

This commit is contained in:
Grok Bot (for George) 2026-10-03 18:54:49 -04:00
commit 1cb714b173

View file

@ -23,5 +23,5 @@ Copy-Item (Join-Path $PSScriptRoot "LICENSE.txt"), (Join-Path $PSScriptRoot "REA
if ($LASTEXITCODE) { throw "makensis failed" }
# raw files alongside the installer
Copy-Item (Join-Path $Stage "*") $Out -Recurse -Force
Get-ChildItem $Out -File | Get-FileHash -Algorithm SHA256 | ForEach-Object { "$($_.Hash.ToLower()) $(Split-Path $_.Path -Leaf)" } | Set-Content (Join-Path $Out "SHA256SUMS.txt")
Get-ChildItem $Out -File | Where-Object { $_.Name -ne "SHA256SUMS.txt" -and $_.Extension -ne ".bundle" } | Get-FileHash -Algorithm SHA256 | ForEach-Object { "$($_.Hash.ToLower()) $(Split-Path $_.Path -Leaf)" } | Set-Content (Join-Path $Out "SHA256SUMS.txt")
Get-ChildItem $Out -File | Format-Table Name, Length -AutoSize