Skip to content

Commit abe1526

Browse files
committed
修复 Windows 构建的 checksum 生成
1 parent 21b58d9 commit abe1526

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ jobs:
8080
cd -
8181
8282
- name: Generate checksum
83+
shell: bash
8384
run: |
8485
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
85-
certutil -hashfile ${{ matrix.platform.name }} SHA256 | grep -E "^[0-9a-fA-F]{64}$" > ${{ matrix.platform.name }}.sha256
86+
certutil -hashfile ${{ matrix.platform.name }} SHA256 | sed -n '2p' | tr -d '\r' > ${{ matrix.platform.name }}.sha256
8687
else
8788
shasum -a 256 ${{ matrix.platform.name }} > ${{ matrix.platform.name }}.sha256
8889
fi

0 commit comments

Comments
 (0)