fix(nightly): preserve mac entitlements through Velopack re-sign

vpk pack re-signs the .app; without --signEntitlements the codesign
strips electron-builder's entitlements (com.apple.security.device.audio-input
et al). Hardened-runtime app then gets microphone auto-denied by TCC with
no prompt — root cause of silent-input nightly reports.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
OmikronApex 2026-07-10 14:03:15 +02:00
parent 0645ce724d
commit 782aea76f9

View File

@ -287,6 +287,11 @@ jobs:
# first, then hand vpk --notaryProfile. Do NOT pass --keychain:
# notarytool defaults to the login keychain, matching vpk's own
# internal notarytool call.
# --signEntitlements is mandatory: vpk re-signs the bundle, and a
# codesign without an entitlements file STRIPS the ones
# electron-builder applied (audio-input, allow-jit, ...) — the
# hardened-runtime app then gets mic access auto-denied with no
# TCC prompt.
xcrun notarytool store-credentials "velopack-notary" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
@ -299,6 +304,7 @@ jobs:
--mainExe "$mainexe" \
-o release/velopack \
--signAppIdentity "$APPLE_SIGNING_IDENTITY" \
--signEntitlements resources/entitlements.mac.plist \
--notaryProfile "velopack-notary"
fi