Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ verify-assets version:
case "$(file -b "$bin")" in
*Mach-O*)
just do apple-verify-signed "$bin"
codesign -d -v "$bin" 2>&1 | grep -qx "Identifier=org.forkcloser.${bin##*/}" || fail "${bin##*/} is not signed as org.forkcloser.${bin##*/}"
# Captured, then searched: piped straight into grep -q, which
# closes the pipe at its match, codesign is killed by SIGPIPE
# often enough under pipefail to fail a release (v10.6.1.5).
details=$(codesign -d -v "$bin" 2>&1) || fail "codesign -d on ${bin##*/}: $details"
printf '%s\n' "$details" | grep -qx "Identifier=org.forkcloser.${bin##*/}" || fail "${bin##*/} is not signed as org.forkcloser.${bin##*/}"
signed=$((signed + 1))
;;
*) ;;
Expand Down
Loading