From 2b9eeb9a308a650b99eb92d4ff6980e37f2b5bd2 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 20 Nov 2025 19:42:49 -0700 Subject: [PATCH] Disable keychain timeout in bundle-mac (#43204) Attempt to reduce the number of times bundle-mac fails to notorize by disabling keychain's auto-lock timeout Release Notes: - N/A --- 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