fix(release): enforce Apple hardened runtime

This commit is contained in:
2026-07-30 21:27:34 +02:00
parent efacfab213
commit 224a8e0e7a
5 changed files with 141 additions and 1 deletions

View File

@@ -25,4 +25,17 @@ grep -F 'run: make build-apple-dmg' \
exit 1
}
signing_line="$(
awk '/sign-exported-app\.sh/ {print NR; exit}' \
"$repo_root/apple/scripts/build-dmg.sh"
)"
dmg_line="$(
awk '/echo "==> Building DMG"/ {print NR; exit}' \
"$repo_root/apple/scripts/build-dmg.sh"
)"
[[ -n $signing_line && -n $dmg_line && $signing_line -lt $dmg_line ]] || {
printf 'The exported app must enforce hardened-runtime signing before DMG creation\n' >&2
exit 1
}
printf 'Release configuration tests passed.\n'