From e582c888b738f13751ab0f95d4dd9288cb01a63b Mon Sep 17 00:00:00 2001 From: iosdeveloper Date: Tue, 29 Mar 2016 12:40:30 +0200 Subject: [PATCH] Update .travis.yml --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 127c8d361..179b07d35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,17 @@ script: if [ -n "$TRAVIS_TAG" ]; then xctool -project $TRAVIS_XCODE_PROJECT before_deploy: - OUTPUTDIR="$PWD/build/Release" - cd $OUTPUTDIR +- CERT_P12=Certificate.p12 +- echo "$CERT_BASE64" | base64 --decode > $CERT_P12 +- KEYCHAIN=build.keychain +- security create-keychain -p travis $KEYCHAIN +- security default-keychain -s $KEYCHAIN +- security unlock-keychain -p travis $KEYCHAIN +- security import $CERT_P12 -k $KEYCHAIN -P "$CERT_PW" -T /usr/bin/codesign +- IDENTITY="Developer ID Application: Code and That Ltd (B3T8QSC4HG)" +- codesign --deep --force --verbose --sign "$IDENTITY" BitBar.app +- codesign --deep --force --verbose --sign "$IDENTITY" BitBarDistro.app +- security delete-keychain $KEYCHAIN - zip -r "BitBar-$TRAVIS_TAG.zip" "BitBar.app" - zip -r "BitBarDistro-$TRAVIS_TAG.zip" "BitBarDistro.app" deploy: