2019-05-03 23:59:40 +02:00
|
|
|
#!/bin/bash
|
2019-05-03 18:09:11 +02:00
|
|
|
if [ "$CIRCLE_BRANCH" = "master" ] ; then
|
|
|
|
STAGE=Prod
|
2019-05-05 10:55:20 +02:00
|
|
|
VERSION_NAME=$(.circleci/getVersionName.sh)
|
2019-05-03 18:09:11 +02:00
|
|
|
else
|
|
|
|
STAGE=Dev
|
2019-05-05 10:55:20 +02:00
|
|
|
VERSION_NAME=$(.circleci/getVersionName.sh --dev)
|
2019-05-03 18:09:11 +02:00
|
|
|
fi
|
|
|
|
echo "export STAGE=$STAGE"
|
2019-05-05 13:58:32 +02:00
|
|
|
echo "export VERSION_NAME=\"$VERSION_NAME\""
|
2019-05-04 14:06:50 +02:00
|
|
|
echo "export BUILD_TYPE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${BUILD_TYPE:0:1})${BUILD_TYPE:1}\""
|
|
|
|
echo "export STAGE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${STAGE:0:1})${STAGE:1}\""
|
|
|
|
echo "export LIBS_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${LIBS:0:1})${LIBS:1}\""
|
2019-05-03 18:09:11 +02:00
|
|
|
|
2019-05-05 13:58:32 +02:00
|
|
|
echo "$ENCODED_KEYSTORE" | base64 --decode > ${HOME}/code/keystore.jks
|
2019-05-03 18:09:11 +02:00
|
|
|
KEYSTORE=${HOME}/code/keystore.jks
|
|
|
|
|
2020-02-09 16:36:34 +01:00
|
|
|
echo "export KEY_CONFIG=\"-PappcenterId=$APPCENTER_ID\
|
2019-05-04 00:41:24 +02:00
|
|
|
-PappcenterDevId=$APPCENTER_DEV_ID\""
|
2020-02-09 16:36:34 +01:00
|
|
|
|
|
|
|
echo "export SIGN_CONFIG=\"-PchaosflixKeystore=$KEYSTORE \
|
|
|
|
-PchaosflixStorePassword=$KEYSTORE_PASSWORD \
|
|
|
|
-PchaosflixKeyName=$KEY_NAME \
|
|
|
|
-PchaosflixKeyPassword=$KEYSTORE_PASSWORD\""
|