From 848da407c2f9b7198b0e05545064d6efdbd147f3 Mon Sep 17 00:00:00 2001 From: rami3l Date: Sat, 12 Sep 2026 09:45:53 +0200 Subject: [PATCH] ci(windows): only generate hash for files in `prepare-deploy.ps1` --- ci/prepare-deploy.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/prepare-deploy.ps1 b/ci/prepare-deploy.ps1 index 8b964e211d..61fde7e3a2 100644 --- a/ci/prepare-deploy.ps1 +++ b/ci/prepare-deploy.ps1 @@ -1,9 +1,12 @@ - # Copy rustup-init to rustup-setup for backwards compatibility cp target\${env:TARGET}\release\rustup-init.exe target\${env:TARGET}\release\rustup-setup.exe # Generate hashes -Get-FileHash .\target\${env:TARGET}\release\* | ForEach-Object {[io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")} +Get-ChildItem -LiteralPath ".\target\${env:TARGET}\release" -File | ForEach-Object { + Get-FileHash -LiteralPath $_.FullName | ForEach-Object { + [io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n") + } +} # Prepare bins for upload $dest = "dist\$env:TARGET"