Skip to content

Commit

Permalink
fix checksum calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Oct 23, 2023
1 parent fc8ae0c commit b5f4b5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,19 @@ jobs:
if: inputs.sign && inputs.os == 'ubuntu-20.04'

- name: Compute checksums (Linux)
run: for i in `ls | grep 'bloom-desktop*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done
run: for i in `ls | grep 'bloom-desktop-*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: inputs.sign && inputs.os == 'ubuntu-20.04'
if: inputs.os == 'ubuntu-20.04'

- name: Compute checksums (MacOS)
run: for i in `ls | grep 'bloom-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
run: for i in `ls | grep 'bloom-desktop-*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: inputs.sign && inputs.os == 'macos-11'
if: inputs.os == 'macos-11'

- name: Compute checksums (Windows)
run: Get-ChildItem "." -Filter bloom-desktop* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
run: Get-ChildItem "." -Filter bloom-desktop-* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
working-directory: packages/desktop/out
if: inputs.sign && inputs.os == 'windows-2019'
if: inputs.os == 'windows-2019'

- name: Upload artifacts
if: inputs.upload
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
echo '| --- | --- | --- |' >> CHANGELOG.md
echo '| bloom-desktop-${{ env.VERSION }}.exe | Windows |' $WIN_SHA256 '|' >> CHANGELOG.md
echo '| bloom-desktop-${{ env.VERSION }}.AppImage | Linux |' $LIN_SHA256 '|' >> CHANGELOG.md
echo '| bloom-desktop-${{ env.VERSION }}.AppImage | Linux |' $MAC_SHA256 '|' >> CHANGELOG.md
echo '| bloom-desktop-${{ env.VERSION }}.dmg | MacOS |' $MAC_SHA256 '|' >> CHANGELOG.md
cat CHANGELOG.md
working-directory: packages/desktop

Expand Down

0 comments on commit b5f4b5e

Please sign in to comment.