Files
rustup/ci/prepare-deploy.ps1
Daniel Silverstone 5803ad6eac CI: Remove vestiges of travis and appveyor
This completes the initial transition to Github Actions by
removing appveyor and travis configurations and the last vestiges
of mentions of it in the ci tree.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-01-07 14:33:57 +00:00

17 lines
641 B
PowerShell

# 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")}
# Prepare bins for upload
$dest = "dist\$env:TARGET"
md -Force "$dest"
cp target\${env:TARGET}\release\rustup-init.exe "$dest/"
cp target\${env:TARGET}\release\rustup-init.exe.sha256 "$dest/"
cp target\${env:TARGET}\release\rustup-setup.exe "$dest/"
cp target\${env:TARGET}\release\rustup-setup.exe.sha256 "$dest/"
ls "$dest"