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 f134232 commit 22b982f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@ jobs:
- name: Generate Checksum
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
./generate_checksum_windows.sh
else
# Unix-like Command (Bash)
find packages/keepkey-desktop/build/ -type f -exec openssl dgst -sha256 {} \; > checksum.txt
./generate_checksum_unix.sh
fi
shell: bash
# Additional Step for Uploading Checksums
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions scripts/generate_checksum_windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
for file in $(find packages/keepkey-desktop/build/ -type f); do
openssl dgst -sha256 "$file"
done > checksum.txt

0 comments on commit 22b982f

Please sign in to comment.