From ec1dcedf2e66bb212f4f40a5c2027ba72dd55f61 Mon Sep 17 00:00:00 2001 From: dingo Date: Fri, 2 Oct 2026 16:48:22 -0400 Subject: [PATCH] Normalize package notice line endings independent of checkout settings Co-Authored-By: Claude Opus 5.5 --- tools/client/package-windows.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/client/package-windows.ps1 b/tools/client/package-windows.ps1 index 7710a3a..affd924 100644 --- a/tools/client/package-windows.ps1 +++ b/tools/client/package-windows.ps1 @@ -102,7 +102,9 @@ $licenses = Join-Path $stage 'LICENSES' New-Item -ItemType Directory -Force $licenses | Out-Null Copy-Item -LiteralPath $exe -Destination $stage Copy-Item -LiteralPath (Join-Path $build 'SDL3.dll') -Destination $stage -Copy-Item -LiteralPath (Join-Path $PSScriptRoot 'THIRD-PARTY-NOTICES.txt') -Destination $stage +# Repository templates are re-written with CRLF so checkout line-ending settings +# cannot change the package bytes. +Write-Text (Join-Path $stage 'THIRD-PARTY-NOTICES.txt') ([IO.File]::ReadAllLines((Join-Path $PSScriptRoot 'THIRD-PARTY-NOTICES.txt'))) # Licence texts, copied from the verified sources (never hand-written). Copy-Item -LiteralPath (Join-Path $sdl 'LICENSE.txt') -Destination (Join-Path $licenses 'SDL3.txt')