Skip to content

Commit f38af94

Browse files
committed
fix: restore shasum fallback for macOS in release workflow
1 parent 7b23246 commit f38af94

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,13 @@ jobs:
153153
tar czf "${PKG}.tar.gz" "$PKG"
154154
fi
155155
156-
# Generate SHA256 checksum (sha256sum is available on all runners)
156+
# Generate SHA256 checksum
157157
ASSET=$(ls "${PKG}.tar.gz" "${PKG}.zip" 2>/dev/null | head -1)
158-
sha256sum "$ASSET" > "${ASSET}.sha256"
158+
if command -v sha256sum >/dev/null 2>&1; then
159+
sha256sum "$ASSET" > "${ASSET}.sha256"
160+
else
161+
shasum -a 256 "$ASSET" > "${ASSET}.sha256"
162+
fi
159163
echo "=== Packaged ==="
160164
ls -la
161165

0 commit comments

Comments
 (0)