we are actually in andoid/app dir

This commit is contained in:
Jakub Sokołowski 2018-05-07 19:56:59 +02:00
parent 86c6701340
commit a2810999a6
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ def enableProguardInReleaseBuilds = false
def getVersionCode = { ->
new ByteArrayOutputStream().withStream { stdOut ->
exec {
commandLine "sh", "../build_no.sh", "--tag"
commandLine "sh", "../../build_no.sh", "--tag"
standardOutput = stdOut
errorOutput = System.err
}
return stdOut.toString().toInteger()
}

View File

@ -25,7 +25,7 @@ getNumber () {
REGEX='^build-[0-9]\+$'
# make sure we have all the tags
git fetch --tags
git fetch --tags --quiet
# check if current commit has a build tag
BUILD=$(git tag --points-at HEAD | grep -e "$REGEX")