Skip to content

Commit

Permalink
debug checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Sep 19, 2023
1 parent 8ecf6f7 commit f134232
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ jobs:

# Additional Step for Generating Checksums
- name: Generate Checksum
run: find packages/keepkey-desktop/build/ -type f -exec openssl dgst -sha256 {} \; > checksum.txt

run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
# Windows Command (PowerShell)
Get-ChildItem -Recurse packages/keepkey-desktop/build/ -File | ForEach-Object {
$hash = Get-FileHash -Path $_.FullName -Algorithm SHA256
"{0} {1}" -f $hash.Hash, $_.Name
} | Out-File -Encoding utf8 checksum.txt
else
# Unix-like Command (Bash)
find packages/keepkey-desktop/build/ -type f -exec openssl dgst -sha256 {} \; > checksum.txt
fi
shell: bash
# Additional Step for Uploading Checksums
- name: Upload Checksum
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f134232

Please sign in to comment.