From 919330a1ff89d06c3c2641fa6110cbd52d72c2cc Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:57:48 +0000 Subject: [PATCH] Disable keychain timeout in bundle-mac (#43204) (cherry-pick to preview) (#43259) Cherry-pick of #43204 to preview ---- Attempt to reduce the number of times bundle-mac fails to notorize by disabling keychain's auto-lock timeout Release Notes: - N/A Co-authored-by: Conrad Irwin --- script/bundle-mac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/bundle-mac b/script/bundle-mac index 248cb10203a16299e33b1d997aeee8cfca46250e..5ee6590a0c656cb56bc5ea091ca844d26b13e9e3 100755 --- a/script/bundle-mac +++ b/script/bundle-mac @@ -113,6 +113,8 @@ if [[ -n "${MACOS_CERTIFICATE:-}" && -n "${MACOS_CERTIFICATE_PASSWORD:-}" && -n security create-keychain -p "$MACOS_CERTIFICATE_PASSWORD" zed.keychain || echo "" security default-keychain -s zed.keychain security unlock-keychain -p "$MACOS_CERTIFICATE_PASSWORD" zed.keychain + # Calling set-keychain-settings without `-t` disables the auto-lock timeout + security set-keychain-settings zed.keychain echo "$MACOS_CERTIFICATE" | base64 --decode > /tmp/zed-certificate.p12 security import /tmp/zed-certificate.p12 -k zed.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign rm /tmp/zed-certificate.p12