Update scripts/build.sh

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Ben 2026-10-16 15:22:58 -04:00 • committed by GitHub
parent a2c67108a1
commit 3002b455ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,11 @@ echo -e "${GREEN}Created:${NC} $RELEASE_DIR/$ARCHIVE_NAME"
###############################################
echo -e "\n${BLUE}Generating SHA-256 checksum...${NC}"
sha256sum "$RELEASE_DIR/$BINARY_NAME" > "$RELEASE_DIR/$BINARY_NAME.sha256"
if command -v sha256sum &>/dev/null; then
sha256sum "$RELEASE_DIR/$BINARY_NAME" > "$RELEASE_DIR/$BINARY_NAME.sha256"
else
shasum -a 256 "$RELEASE_DIR/$BINARY_NAME" > "$RELEASE_DIR/$BINARY_NAME.sha256"
fi
echo -e "${GREEN}Checksum:${NC} $RELEASE_DIR/$BINARY_NAME.sha256"
###############################################