mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-27 06:30:29 +00:00
26 lines
No EOL
921 B
Bash
Executable file
26 lines
No EOL
921 B
Bash
Executable file
#!/bin/bash
|
|
if [ "$CIRCLE_BRANCH" = "master" ] ; then
|
|
STAGE=Prod
|
|
VERSION_NAME=$(.circleci/getVersionName.sh)
|
|
else
|
|
STAGE=Dev
|
|
VERSION_NAME=$(.circleci/getVersionName.sh --dev)
|
|
fi
|
|
echo "export STAGE=$STAGE"
|
|
echo "export VERSION_NAME=\"$VERSION_NAME\""
|
|
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}\""
|
|
|
|
echo "$ENCODED_KEYSTORE" | base64 --decode > ${HOME}/code/keystore.jks
|
|
KEYSTORE=${HOME}/code/keystore.jks
|
|
|
|
echo "export KEY_CONFIG=\"-PappcenterId=$APPCENTER_ID\
|
|
-PappcenterDevId=$APPCENTER_DEV_ID\""
|
|
|
|
echo "export SIGN_CONFIG=\"-PchaosflixKeystore=$KEYSTORE \
|
|
-PchaosflixStorePassword=$KEYSTORE_PASSWORD \
|
|
-PchaosflixKeyName=$KEY_NAME \
|
|
-PchaosflixKeyPassword=$KEYSTORE_PASSWORD\""
|
|
|
|
env |