Skip to content

Commit e2b3200

Browse files
committed
Generate and publish SHA256 hashes for installers, closes #5160
1 parent a44dd18 commit e2b3200

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

appveyor.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,19 @@ for:
103103
after_test:
104104
- cmd: iscc /O "Rubberduck.Deployment\InnoSetup\Rubberduck.Installer.Build.iss"
105105
- cmd: move %INSTALLER_DIR%\Rubberduck.Setup.exe %INSTALLER_DIR%\%INSTALLER_NAME%
106+
- ps: |
107+
$installer = "$env:INSTALLER_DIR\$env:INSTALLER_NAME"
108+
$sha = Get-FileHash -Path $installer -Algorithm SHA256
109+
Set-Content -Path "$($installer)_sha256.hash" -Value $sha.Hash
106110
107111
# grab the installers we produce and upload them to github :)
108112
artifacts:
109113
- path: Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.*.exe
110114
name: Rubberduck
111115
- path: Rubberduck.Deployment\bin\Rubberduck.CodeAnalysis.xml
112116
name: InspectionDocs
117+
- path: Rubberduck.Deployment\InnoSetup\Installers\*.hash
118+
name: InstallerHashes
113119
deploy:
114120
- provider: GitHub
115121
tag: RETAGMEWITHAMESSAGE
@@ -119,7 +125,7 @@ deploy:
119125
description: "Built with :heart: by AppVeyor CI on [$(appveyor_repo_branch)] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)"
120126
auth_token:
121127
secure: NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
122-
artifact: Rubberduck, InspectionDocs
128+
artifact: Rubberduck, InspectionDocs, InstallerHashes
123129
on:
124130
branch: master
125131
- provider: GitHub
@@ -130,7 +136,7 @@ deploy:
130136
description: "AppVeyor build on [$(appveyor_repo_branch)] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)"
131137
auth_token:
132138
secure: NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
133-
artifact: Rubberduck, InspectionDocs
139+
artifact: Rubberduck, InspectionDocs, InstallerHashes
134140
on:
135141
branch: next
136142

0 commit comments

Comments
 (0)