的
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# use curl to download the publisher acct json file from $PUBLISHER_ACCT_JSON_FILE_URI, if set,
|
||||
# to the path/filename set in $PUBLISHER_ACCT_JSON_FILE.
|
||||
if [[ $PUBLISHER_ACCT_JSON_FILE && ${PUBLISHER_ACCT_JSON_FILE} && $PUBLISHER_ACCT_JSON_FILE_URI && ${PUBLISHER_ACCT_JSON_FILE_URI} ]]
|
||||
then
|
||||
echo "Keystore detected - downloading..."
|
||||
curl -L -o ${PUBLISHER_ACCT_JSON_FILE} ${PUBLISHER_ACCT_JSON_FILE_URI}
|
||||
else
|
||||
echo "Keystore uri not set. .APK artifact will not be signed."
|
||||
fi
|
||||
@@ -0,0 +1,13 @@
|
||||
# uses the vcs build number as the android version code and adds it to the display version string.
|
||||
#MAJOR_MINOR=`cat version.txt`
|
||||
VERSION_CODE=$CIRCLE_BUILD_NUM
|
||||
VERSION_NAME="$MAJOR_MINOR.$VERSION_CODE"
|
||||
|
||||
echo "Building with Version Name: $VERSION_NAME"
|
||||
|
||||
# update build.gradle with new version code:
|
||||
perl -pi -w -e "s/theVersionCode = \d/theVersionCode = $VERSION_CODE/g;" build.gradle
|
||||
|
||||
# update build.gradle with new version name:
|
||||
#perl -pi -w -e 's/_dev_build_/'$VERSION_NAME'/g;' build.gradle
|
||||
|
||||
Reference in New Issue
Block a user