From 7069212f3088eca4dfdd348536c16bcae1201e7d Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Mon, 4 Sep 2017 17:24:11 +0800 Subject: [PATCH] Add sha256 for windows build --- .ci/before_deploy.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/before_deploy.ps1 b/.ci/before_deploy.ps1 index f3229ca..9146776 100644 --- a/.ci/before_deploy.ps1 +++ b/.ci/before_deploy.ps1 @@ -9,13 +9,16 @@ New-Item -Type Directory -Name $STAGE Set-Location $STAGE $ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip" +$ZIP_SHA256 = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip.sha256" # TODO Update this to package the right artifacts Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\svmdev.exe" '.\' 7z a "$ZIP" * +Get-FileHash "$ZIP" -Algorithm SHA256 | Out-File "$ZIP_SHA256" Push-AppveyorArtifact "$ZIP" +Push-AppveyorArtifact "$ZIP_SHA256" Remove-Item *.* -Force Set-Location ..