diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f90d2b..3ab8cc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -206,7 +206,11 @@ jobs: Copy-Item "target/x86_64-pc-windows-msvc/release/magpie.exe" -Destination "magpie.exe" Compress-Archive -Path "magpie.exe" -DestinationPath $asset -Force $hash = (Get-FileHash -Algorithm SHA256 $asset).Hash.ToLower() - "$hash $asset" | Set-Content -Encoding ascii "$asset.sha256" + # WriteAllText with an explicit LF, NOT Set-Content: Set-Content + # ends the line CRLF, and `shasum -c`/`sha256sum -c` on unix then + # look for a filename ending in a literal \r ("No such file") — + # caught verifying the v0.1.0 release assets. + [IO.File]::WriteAllText("$asset.sha256", "$hash $asset`n") Write-Host "Built $asset — sha256 $hash" - uses: actions/upload-artifact@v4