diff --git a/scripts/build-olympus.bash b/scripts/build-olympus.bash index f9cabf06..03efd57f 100755 --- a/scripts/build-olympus.bash +++ b/scripts/build-olympus.bash @@ -11,12 +11,22 @@ # For starters lets only create keychains in travis, since locally everything is setup already. But ultimately, we should create a separate new keychain locally to so that we can test that better echo "-- TRAVIS: $TRAVIS" -# Decrypting certs and profiles (not sure if profiles actually need to be encrypted, but this is how others did it so I'm following the same route just to be on the safe side) -echo "-- Setting up signing" -echo "-- Decrypting keys, etc" -echo "-- Setting up keychain" -echo "-- Installing provisioning profiles, so that XCode can find them" +if [ ! -z "$TRAVIS" ] +then + # Decrypting certs and profiles (not sure if profiles actually need to be encrypted, but this is how others did it so I'm following the same route just to be on the safe side) + echo "-- Setting up signing" + echo "-- Decrypting keystore" + openssl aes-256-cbc -k "$FILE_ENCRYPTION_PASSWORD" -in scripts/keystore/${DEVELOPMENT_KEYSTORE}.enc -d -a -out scripts/certs/${DEVELOPMENT_KEYSTORE} + + echo "-- Installing keystore" + ll ~/.android/ + + # Overwrite default keystore file only in travis, let's keep local builds separate for now + cp scripts/certs/${DEVELOPMENT_KEYSTORE} ~/.android/debug.keystore +fi + +#echo "-- Installing provisioning profiles, so that XCode can find them" if [ ! -z "$TRAVIS" ] diff --git a/scripts/keystore/debug.keystore.enc b/scripts/keystore/debug.keystore.enc new file mode 100644 index 00000000..c99f9e69 --- /dev/null +++ b/scripts/keystore/debug.keystore.enc @@ -0,0 +1,27 @@ +U2FsdGVkX1/EAExn5PtaD0H1rmC40xnids0x7ynVbQPf4YoWA/ks6srGNLq1jWvD +5y+ZRD7NaKgtcttt2XhwY8rGHGqWJDxI1Syk8Xrt2RMBsjl2fwk1jv5DUw5hDsqX +nh7khrv8ZtxgcWMFg0YL3Osmic1lsy6x3jgjRt0WAnUARNLoH3Vx8ijNc+ZJwikI +6eB7m3SjZskBbkKv9N/b8EX+6w/6/zrKmdxntXcfwRq4JhgzUhd4ino/fa+YkIvJ +O0Tizw+Xc5aKY3/vlAYu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SnyLwmHKSB7kl+QZIL0YUmjYJFxpj8 +xUB7KCCoN9/eVMjo1+g0DckDGRbOtnuz2GgMR/w4CTV9Fpv/C/eSbcr4JKJLmpC4 +JoJZaeRaTf3jBQH6gp7qGk6DZrN/ebW+W6pi7vvqfhs4JrJnFVtvqKy65UE4KM0B +wISy6QW9YEjSTjA1NcoL874cnnVE0tkvf2/pEtwxnY110O4V2aag4ZbrO3FiuHs7 +k8IsSJxcg0Nm6XTuMdNdht0MRDg0twxI49Mg1P5okhlwlc7BqIGck4PzOQe4mx8E +n2bS4CmB33d94v3npBdYFjynflKX64U7kL8KmJYNFSPv6AXX/E+dfNOeeJD9eQpA +isYjCi/uV+w7qhK0bi4e38xsT9FQQlbVprxn/mY0dr4= diff --git a/scripts/local-wrapper.bash b/scripts/local-wrapper.bash index d754ed40..287f3bc4 100755 --- a/scripts/local-wrapper.bash +++ b/scripts/local-wrapper.bash @@ -63,20 +63,20 @@ export -f is_git_repo_state_clean # Common to local and travis builds export COMMIT_AUTHOR_EMAIL="antonis.tsakiridis@telestax.com" export APP_NAME="restcomm-olympus" -export DEVELOPER_NAME="iPhone Distribution: Telestax, Inc." -export DEVELOPMENT_TEAM="H9PG74NSQT" +#export DEVELOPER_NAME="iPhone Distribution: Telestax, Inc." +#export DEVELOPMENT_TEAM="H9PG74NSQT" # Keep the first seven chars from SHA1 as typically done export COMMIT_SHA1=`git rev-parse HEAD | cut -c -7` #export DEVELOPMENT_PROVISIONING_PROFILE_NAME="development" -export APPLE_CERT="AppleWWDRCA.cer" -export DEVELOPMENT_CERT="development-cert.cer" -export DEVELOPMENT_KEY="development-key.p12" -export DISTRIBUTION_CERT="enterprise-distribution-cert.cer" -export DISTRIBUTION_KEY="enterprise-distribution-key.p12" -export DEVELOPMENT_PROVISIONING_PROFILE_OLYMPUS_NAME="profile-development-olympus" -export DISTRIBUTION_PROVISIONING_PROFILE_OLYMPUS_NAME="profile-distribution-olympus" -export CUSTOM_KEYCHAIN="ios-build.keychain" +#export APPLE_CERT="AppleWWDRCA.cer" +export DEVELOPMENT_KEYSTORE="debug.keystore" +#export DEVELOPMENT_KEY="development-key.p12" +#export DISTRIBUTION_CERT="enterprise-distribution-cert.cer" +#export DISTRIBUTION_KEY="enterprise-distribution-key.p12" +#export DEVELOPMENT_PROVISIONING_PROFILE_OLYMPUS_NAME="profile-development-olympus" +#export DISTRIBUTION_PROVISIONING_PROFILE_OLYMPUS_NAME="profile-distribution-olympus" +#export CUSTOM_KEYCHAIN="ios-build.keychain" if [ ! -z "$TRAVIS" ] then