diff --git a/tools/sign-release.sh b/tools/sign-release.sh index 62abd460c6..b2cc432027 100755 --- a/tools/sign-release.sh +++ b/tools/sign-release.sh @@ -35,6 +35,15 @@ die() SIGNIFY=$(command -v signify 2>/dev/null || command -v signify-openbsd 2>/dev/null) \ || die "no signify (security/signify)" +# The release key of the build host, unless the caller names another: without +# it `auto' left the previous .sig next to a new SHA512 (a stale signature +# that the upgrade check refuses; measured 2026-11-17). +if [ -z "${SIGNIFY_SECKEY:-}" ] && + [ -r "${HOME:-/nonexistent}/.config/makronix/signify/makronix-0.99.sec" ]; then + SIGNIFY_SECKEY=$HOME/.config/makronix/signify/makronix-0.99.sec + export SIGNIFY_SECKEY +fi + [ $# -ge 2 ] || die "usage: $0 sign|auto|verify|sign-key ARG..." cmd=$1 shift