fixed curse upload for other linux builders
This commit is contained in:
parent
6aa4b66ae5
commit
1ee57b7907
|
@ -1,4 +1,3 @@
|
||||||
import org.apache.tools.ant.taskdefs.condition.Os
|
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -32,15 +31,17 @@ def getVersionName = { ->
|
||||||
|
|
||||||
def getAPIKey = { ->
|
def getAPIKey = { ->
|
||||||
def stdout = new ByteArrayOutputStream()
|
def stdout = new ByteArrayOutputStream()
|
||||||
if (Os.isFamily(Os.FAMILY_UNIX)) {
|
try {
|
||||||
exec {
|
exec {
|
||||||
commandLine 'cat', '../apiKey'
|
commandLine 'cat', '../apiKey'
|
||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
}
|
}
|
||||||
return stdout.toString().trim()
|
return stdout.toString().trim()
|
||||||
|
} catch(Exception e) {
|
||||||
|
return '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
return '0'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
version = getVersionName()
|
version = getVersionName()
|
||||||
|
|
Loading…
Reference in a new issue