Skip to content

Commit 2b9eeb9

Browse files
authored
Disable keychain timeout in bundle-mac (zed-industries#43204)
Attempt to reduce the number of times bundle-mac fails to notorize by disabling keychain's auto-lock timeout Release Notes: - N/A
1 parent 07d9898 commit 2b9eeb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script/bundle-mac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ if [[ -n "${MACOS_CERTIFICATE:-}" && -n "${MACOS_CERTIFICATE_PASSWORD:-}" && -n
113113
security create-keychain -p "$MACOS_CERTIFICATE_PASSWORD" zed.keychain || echo ""
114114
security default-keychain -s zed.keychain
115115
security unlock-keychain -p "$MACOS_CERTIFICATE_PASSWORD" zed.keychain
116+
# Calling set-keychain-settings without `-t` disables the auto-lock timeout
117+
security set-keychain-settings zed.keychain
116118
echo "$MACOS_CERTIFICATE" | base64 --decode > /tmp/zed-certificate.p12
117119
security import /tmp/zed-certificate.p12 -k zed.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
118120
rm /tmp/zed-certificate.p12

0 commit comments

Comments
 (0)