fixed curse upload
This commit is contained in:
parent
0092783f11
commit
c22fadbf85
11
build.gradle
11
build.gradle
|
@ -1,4 +1,4 @@
|
|||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
|
@ -32,20 +32,20 @@ def getVersionName = { ->
|
|||
|
||||
def getAPIKey = { ->
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
if (Os.isFamily(Os.FAAMILY_LINUX)) {
|
||||
if (Os.isFamily(Os.FAMILY_UNIX)) {
|
||||
exec {
|
||||
commandLine 'cat', '../apiKey'
|
||||
standardOutput = stdout
|
||||
}
|
||||
return stdout.toString().trim()
|
||||
}
|
||||
return "0";
|
||||
|
||||
return '0'
|
||||
}
|
||||
|
||||
version = getVersionName()
|
||||
group = modGroup
|
||||
archivesBaseName = modBaseName
|
||||
def apiToken = getAPIKey
|
||||
|
||||
minecraft {
|
||||
version = project.forgeVersion
|
||||
|
@ -63,6 +63,7 @@ minecraft {
|
|||
|
||||
}
|
||||
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
|
@ -131,7 +132,7 @@ processResources {
|
|||
}
|
||||
|
||||
curseforge {
|
||||
apiKey = apiToken
|
||||
apiKey = getApiKey()
|
||||
project {
|
||||
id = projectID
|
||||
changelog = file('changelog.txt')
|
||||
|
|
Loading…
Reference in New Issue