github-desktop/script/setup-macos-keychain

14 lines
539 B
Plaintext
Raw Normal View History

2016-06-16 22:17:50 +00:00
#!/bin/sh
2016-06-16 22:35:23 +00:00
curl -H "Authorization: token ${DESKTOPBOT_TOKEN}" -H 'Accept: application/vnd.github.v3.raw' -O -L https://api.github.com/repos/desktop/desktop-secrets/contents/developer-id-cert.p12
2016-06-16 22:17:50 +00:00
2017-09-12 16:18:38 +00:00
KEY_CHAIN=mac-build.keychain
security create-keychain -p travis $KEY_CHAIN
security import developer-id-cert.p12 -k $KEY_CHAIN -P $KEY_PASSWORD -T /usr/bin/codesign
security list-keychain -s $KEY_CHAIN
security unlock-keychain -p travis $KEY_CHAIN
security set-keychain-settings -t 3600 -u $KEY_CHAIN
security default-keychain -s $KEY_CHAIN