mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
63c4e2456b
## Additional Information * Based on suggestions by @knst made [here](https://github.com/dashpay/dash/pull/5449#issuecomment-1609937147) and [here](https://github.com/dashpay/dash/pull/5426#discussion_r1241789033)
29 lines
718 B
Bash
Executable File
29 lines
718 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
if [[ -n "${1}" ]]; then
|
|
WORKSPACE_PATH="$1"
|
|
else
|
|
WORKSPACE_PATH="/src/dash"
|
|
fi
|
|
|
|
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
|
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$WORKSPACE_PATH"
|
|
COMMIT_ID="$(git rev-parse --short=12 HEAD)"
|
|
|
|
printf "\nBinaries:\n\n"
|
|
( \
|
|
SRC_PATH_PREFIX="guix-build-${COMMIT_ID}/distsrc-" && \
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/dash{d,-cli,-tx,-wallet}{,.exe} && \
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/qt/dash-qt{,.exe} && \
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/test/test_dash{,.exe} \
|
|
) | sort -k 2
|
|
|
|
printf "\nArchives:\n\n"
|
|
find "guix-build-${COMMIT_ID}/output" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2
|