mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-18 16:26:05 -04:00
Fix gradle build file
This commit is contained in:
parent
3b4b63e57b
commit
2f42873793
@ -66,10 +66,10 @@ def readBuildNumber() {
|
|||||||
def branches = json.getAsJsonArray('branches')
|
def branches = json.getAsJsonArray('branches')
|
||||||
if (branches != null && branches.size() > 0) {
|
if (branches != null && branches.size() > 0) {
|
||||||
def info = branches.get(0).getAsJsonObject()
|
def info = branches.get(0).getAsJsonObject()
|
||||||
def code = info.get('number').getAsInt() + 1
|
def code = info.get('number').getAsInt()
|
||||||
versionProps['VERSION_CODE'] = code.toString()
|
versionProps['VERSION_CODE'] = code.toString()
|
||||||
versionProps.store(versionPropsFile.newWriter(), null)
|
versionProps.store(versionPropsFile.newWriter(), null)
|
||||||
return code.toString()
|
return (code + 1).toString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user