Verified Commit 0e63b652 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Improve version counting

parent c168c3a3
#!/bin/bash #!/bin/bash
VERSION_NAME=$(git describe --tags | sed 's!release/!!g') VERSION_NAME=$(git describe --tags | sed 's!release/!!g')
VERSION_CODE=$(( $(git rev-list --count --first-parent HEAD) - 12 )) VERSION_CODE=$(( $(git for-each-ref refs/tags/release | wc -l) + 47 ))
cat > app/version.gradle <<VERSION_EOF cat > app/version.gradle <<VERSION_EOF
ext { ext {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment