We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed0924 commit caaefabCopy full SHA for caaefab
add-osx-cert.sh
@@ -1,20 +1,19 @@
1
#!/usr/bin/env sh
2
3
KEY_CHAIN=build.keychain
4
-KEY_CHAIN_PASSWORD=password123
5
CERTIFICATE_P12=certificate.p12
6
7
# Recreate the certificate from the secure environment variable
8
echo $CERTIFICATE_OSX_APPLICATION | base64 --decode > $CERTIFICATE_P12
9
10
#create a keychain
11
-security create-keychain -p $KEY_CHAIN_PASSWORD $KEY_CHAIN
+security create-keychain -p actions $KEY_CHAIN
12
13
# Make the keychain the default so identities are found
14
security default-keychain -s $KEY_CHAIN
15
16
# Unlock the keychain
17
-security unlock-keychain -p $KEY_CHAIN_PASSWORD $KEY_CHAIN
+security unlock-keychain -p actions $KEY_CHAIN
18
19
security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $CERTIFICATE_PASSWORD -T /usr/bin/codesign;
20
0 commit comments