Update README.md
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 20s
Build-Test-Publish / build (linux/arm64) (push) Successful in 26s

This commit is contained in:
Your Name
2025-09-02 16:57:47 +12:00
parent 4631d9d1a3
commit 90e4155cf8
7 changed files with 272 additions and 5 deletions

22
build.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT="$(basename "${SCRIPT_DIR}")"
rm -rf "${SCRIPT_DIR}/output"
mkdir -p "${SCRIPT_DIR}/output"
# Build dshash utility
cd "${SCRIPT_DIR}/dshash"
make clean
make
# Copy binary to output
cp "${SCRIPT_DIR}/dshash/dshash" "${SCRIPT_DIR}/output/dshash"
# Make sure it's executable
chmod +x "${SCRIPT_DIR}/output/dshash"
echo "Build complete: ${SCRIPT_DIR}/output/dshash"