aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuutaW <17158086+trumeet@users.noreply.github.com>2019-04-19 10:55:44 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-04-19 10:55:44 -0700
commit9bb51f7140f3c55aae45b84bcc68f221484965e3 (patch)
tree66b01cf5f7c37d50790f85739d04203a9f02bb25
parent679810bbcfd4a18923a272e7d4ac1f37d24e6761 (diff)
downloadOhMySAF-master.tar
OhMySAF-master.tar.gz
OhMySAF-master.tar.bz2
OhMySAF-master.zip
fix: fix versionHEADmaster
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
-rw-r--r--build.gradle4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 9412092..a6182b7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,11 +27,11 @@ task clean(type: Delete) {
}
// Inserted by Trumeet@GitHub: add version info
-def commit = 'git rev-list --count HEAD'.execute([], project.rootDir).text.trim()
+def commit = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def ver = "$commit"
ext {
- version = 1 //ver
+ version = commit
}
task exportVersion(type: Exec) {