mirror of
https://github.com/usestrix/strix.git
synced 2026-10-26 06:02:30 +00:00
Update scripts/build.sh
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
a2c67108a1
commit
3002b455ee
1 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
###############################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue