Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
Add keychain script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisenytc committed Jul 24, 2016
1 parent f26a0f8 commit c8afade
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions script/keychain.sh
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CERTIFICATE_P12=Certificate.p12;
echo "$CERTIFICATE_OSX_P12" | base64 — decode > $CERTIFICATE_P12;
export KEYCHAIN=build.keychain;
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN;
security default-keychain -s $KEYCHAIN;
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN;
security import $CERTIFICATE_P12 -k $KEYCHAIN -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign;
fi

0 comments on commit c8afade

Please sign in to comment.