summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-20 19:33:34 +0800
committerOpportunityLiu <[email protected]>2019-06-20 19:33:34 +0800
commit61115371793553c60f46b55152b480245ceee129 (patch)
tree57a879db84d543f3a888eada5d2f087dfa8a1370
parent3d54d594eb812ece28f34dd8bb1dc46a7b204022 (diff)
add shafile
-rw-r--r--.appveyor.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 9fe709ee5..7ec829788 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -49,6 +49,7 @@ build_script:
after_build:
# publish exe
- ps: Push-AppveyorArtifact .\core\build\xmake.exe -FileName xmake.exe -DeploymentName "xmake-executable"
+ - ps: (Get-FileHash .\core\build\xmake.exe -Algorithm SHA256).Hash + " *xmake.exe" >> ./shafile
# compose & publish installer
- ps: Copy-Item C:\winenv\ . -Recurse
- ps: $version = (Get-Command xmake).FileVersionInfo
@@ -60,12 +61,16 @@ after_build:
/D$($env:platform)
.\scripts\installer.nsi
- ps: Push-AppveyorArtifact .\scripts\xmake.exe -FileName xmake-installer.exe -DeploymentName "xmake-installer"
+ - ps: (Get-FileHash .\scripts\xmake.exe -Algorithm SHA256).Hash + " *xmake-installer.exe" >> ./shafile
# publish zip archive
- ps: Copy-Item .\*.md .\xmake
- ps: Copy-Item C:\winenv\ .\xmake -Recurse
- ps: Copy-Item .\core\build\xmake.exe .\xmake
- ps: Compress-Archive -Path .\xmake -DestinationPath .\archive.zip -CompressionLevel Optimal
- ps: Push-AppveyorArtifact .\archive.zip -FileName xmake.zip -DeploymentName "xmake-archive"
+ - ps: (Get-FileHash .\archive.zip -Algorithm SHA256).Hash + " *xmake.zip" >> ./shafile
+ # publish sha file
+ - ps: Push-AppveyorArtifact ./shafile -FileName xmake.sha256 -DeploymentName "xmake-shafile"
test_script:
- ps: xmake --version