Files
steamcache2/.goreleaser.checksum.sh
Justin Harms 8f2d1eff9b
Some checks failed
CI / Lint (push) Successful in 6s
CI / Build (push) Successful in 14s
CI / Test (push) Successful in 59s
Release versioned tag / Build versioned release (push) Failing after 1m5s
refactor: remove commented build steps and add checksum script for binaries
2025-01-21 13:18:21 -06:00

12 lines
192 B
Bash

#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "usage: $0 <path>"
exit 1
fi
SUM=$(shasum -a 256 "$1" | cut -d' ' -f1)
BASENAME=$(basename "$1")
echo -n "${SUM} ${BASENAME}" > "$1".sha256