Skip to content

Commit

Permalink
Ensure game.exe gets correct hash
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Dec 21, 2023
1 parent 388301b commit dbaad95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ jobs:
run: |
echo $pwd.Path >> $env:GITHUB_PATH
- name: Download original game binary for comparison
run: curl -L $env:ORIGINAL_URL -o resources/game.exe
run: |
curl -L $env:ORIGINAL_URL -o resources/game.exe
$hash = (Get-FileHash resources/game.exe).Hash
if ($hash -ne "9f76483c46256804792399296619c1274363c31cd8f1775fafb55106fb852245") {
Write-Host "Downloaded file with unexpected hash."
Write-Host "Expected: 9f76483c46256804792399296619c1274363c31cd8f1775fafb55106fb852245"
Write-Host "Got: $hash"
exit 1
}
env:
ORIGINAL_URL: ${{ secrets.ORIGINAL_URL }}
- name: Download reimplemented game binary for comparison (1/2)
Expand Down

0 comments on commit dbaad95

Please sign in to comment.