Update HMCL version
This commit is contained in:
@@ -12,11 +12,11 @@ deploy:
|
|||||||
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}.jar
|
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}.jar
|
||||||
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}.exe
|
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}.exe
|
||||||
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}-MacOSApp.zip
|
- HMCSM/build/libs/HMCSM-${HMCSM_VERSION_ROOT}.${TRAVIS_BUILD_NUMBER}-MacOSApp.zip
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
on:
|
||||||
repo: mclauncher/HMCL
|
repo: mclauncher/HMCL
|
||||||
branch: master
|
branch: master
|
||||||
tags: true
|
tags: true
|
||||||
|
skip_cleanup: true
|
||||||
install: echo "skip 'gradle assemble' step"
|
install: echo "skip 'gradle assemble' step"
|
||||||
script: gradle build --continue
|
script: gradle build --continue
|
||||||
before_cache:
|
before_cache:
|
||||||
|
|||||||
@@ -54,8 +54,7 @@ def readBuildNumber() {
|
|||||||
|
|
||||||
if (versionPropsFile.canRead()) {
|
if (versionPropsFile.canRead()) {
|
||||||
versionProps.load(new FileInputStream(versionPropsFile))
|
versionProps.load(new FileInputStream(versionPropsFile))
|
||||||
def code = versionProps['VERSION_CODE'].toInteger() + 1
|
def code = versionProps['VERSION_CODE'].toInteger()
|
||||||
|
|
||||||
return code.toString()
|
return code.toString()
|
||||||
} else {
|
} else {
|
||||||
versionPropsFile.createNewFile()
|
versionPropsFile.createNewFile()
|
||||||
@@ -66,10 +65,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()
|
def code = info.get('number').getAsInt().toString()
|
||||||
versionProps['VERSION_CODE'] = code.toString()
|
versionProps['VERSION_CODE'] = code
|
||||||
versionProps.store(versionPropsFile.newWriter(), null)
|
versionProps.store(versionPropsFile.newWriter(), null)
|
||||||
return (code + 1).toString()
|
return code
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,7 +87,7 @@ if (buildnumber == null)
|
|||||||
|
|
||||||
def versionroot = System.getenv("VERSION_ROOT")
|
def versionroot = System.getenv("VERSION_ROOT")
|
||||||
if (versionroot == null)
|
if (versionroot == null)
|
||||||
versionroot = "2.5.0"
|
versionroot = "2.5.1"
|
||||||
|
|
||||||
String mavenGroupId = 'HMCL'
|
String mavenGroupId = 'HMCL'
|
||||||
String mavenVersion = versionroot + '.' + buildnumber
|
String mavenVersion = versionroot + '.' + buildnumber
|
||||||
|
|||||||
Reference in New Issue
Block a user