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')