Skip to content

Commit 4fdd836

Browse files
committed
Use hardened runtime on macOS release builds.
The Apple notary service requires submitted app bundles to be configured to use the hardened runtime libraries. This is configured at signing time, and supported by the signapple tool Bitcoin Core uses for reproduceable signed binaries. We simply need to pass "--hardened-runtime" when the signature is created. Once attached to the bundle, the resulting codesigned binary can be successfully submitted to the Apple binary notarization service by any Apple Developer.
1 parent 3a0f54d commit 4fdd836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/macdeploy/detached-sig-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
rm -rf ${TEMPDIR}
2525
mkdir -p ${TEMPDIR}
2626

27-
${SIGNAPPLE} sign -f --detach "${TEMPDIR}/${OUTROOT}" "$@" "${BUNDLE}"
27+
${SIGNAPPLE} sign -f --detach "${TEMPDIR}/${OUTROOT}" "$@" "${BUNDLE}" --hardened-runtime
2828

2929
tar -C "${TEMPDIR}" -czf "${OUT}" .
3030
rm -rf "${TEMPDIR}"

0 commit comments

Comments
 (0)