fix: fail fast when mac installer cert identity is missing

This commit is contained in:
LukeGus committed 2026-09-20 16:14:28 -05:00
1 parent 99506899da
commit 86befa4977
1 file changed
+14
+14
View File
@@ -468,6 +468,13 @@ jobs:
security find-identity -v -p codesigning $KEYCHAIN_PATH security find-identity -v -p codesigning $KEYCHAIN_PATH
if ! security find-identity -v -p codesigning $KEYCHAIN_PATH | grep -q "3rd Party Mac Developer Installer"; then
echo "No '3rd Party Mac Developer Installer' identity found in the keychain."
echo "electron-builder needs this to wrap the signed .app into a .pkg for MAS."
echo "Check that MAC_INSTALLER_CERTIFICATE_BASE64 holds a valid, non-expired installer cert."
exit 1
fi
- name: Build macOS App Store Package - name: Build macOS App Store Package
if: steps.check_certs.outputs.has_certs == 'true' if: steps.check_certs.outputs.has_certs == 'true'
env: env:
@@ -1066,6 +1073,13 @@ jobs:
security find-identity -v -p codesigning $KEYCHAIN_PATH security find-identity -v -p codesigning $KEYCHAIN_PATH
if ! security find-identity -v -p codesigning $KEYCHAIN_PATH | grep -q "3rd Party Mac Developer Installer"; then
echo "No '3rd Party Mac Developer Installer' identity found in the keychain."
echo "electron-builder needs this to wrap the signed .app into a .pkg for MAS."
echo "Check that MAC_INSTALLER_CERTIFICATE_BASE64 holds a valid, non-expired installer cert."
exit 1
fi
- name: Check for App Store Connect API credentials - name: Check for App Store Connect API credentials
id: check_asc_creds id: check_asc_creds
run: | run: |