client: make error logging opt out

This commit is contained in:
Owain van Brakel
2019-11-08 04:36:47 +01:00
parent 894d62998e
commit 7866cc612b
8 changed files with 70 additions and 11 deletions

View File

@@ -106,18 +106,27 @@ fun formatDate(date: Date?) = with(date ?: Date()) {
SimpleDateFormat("MM-dd-yyyy").format(this)
}
fun launcherVersion(): String {
if (project.hasProperty("releaseBuild")) {
return ProjectVersions.launcherVersion
}
return "-1"
}
tasks {
build {
finalizedBy("shadowJar")
}
"processResources"(ProcessResources::class) {
processResources {
val tokens = mapOf(
"project.version" to ProjectVersions.rlVersion,
"rs.version" to ProjectVersions.rsversion.toString(),
"open.osrs.version" to ProjectVersions.openosrsVersion,
"open.osrs.builddate" to formatDate(Date()),
"launcher.version" to ProjectVersions.launcherVersion
"launcher.version" to launcherVersion()
)
inputs.properties(tokens)
@@ -130,6 +139,7 @@ tasks {
}
jar {
manifest {
attributes(mutableMapOf("Main-Class" to "net.runelite.client.RuneLite"))
}