Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(release): install Apple signing intermediates (#6566)

Ezra Ellette308574c51fbc
diff --git a/infra/release-mac-runner/template.yml b/infra/release-mac-runner/template.yml
index 45de53087..90d784893 100644
--- a/infra/release-mac-runner/template.yml
+++ b/infra/release-mac-runner/template.yml
@@ -172,6 +172,17 @@ Resources:
mkdir -p "$CACHE_ROOT" "$RUNNER_ROOT"
chown -R ec2-user:staff "$CACHE_ROOT" "$RUNNER_ROOT"
+ APPLE_CERT_DIR=/var/tmp/screenpipe-apple-certs
+ mkdir -p "$APPLE_CERT_DIR"
+ curl -fsSL -o "$APPLE_CERT_DIR/DeveloperIDCA.cer" \
+ https://www.apple.com/certificateauthority/DeveloperIDCA.cer
+ curl -fsSL -o "$APPLE_CERT_DIR/DeveloperIDG2CA.cer" \
+ https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer
+ security import "$APPLE_CERT_DIR/DeveloperIDCA.cer" \
+ -t cert -k /Library/Keychains/System.keychain || true
+ security import "$APPLE_CERT_DIR/DeveloperIDG2CA.cer" \
+ -t cert -k /Library/Keychains/System.keychain || true
+
sudo -u ec2-user -H /bin/bash <<'BOOTSTRAP'
set -euo pipefail
eval "$(/opt/homebrew/bin/brew shellenv)"