Remove gitVersion

This commit is contained in:
Him188 2020-09-27 02:32:57 +08:00
parent 05c5e60492
commit 5af02a4b73
2 changed files with 5 additions and 3 deletions

View File

@ -36,8 +36,8 @@ class MiraiConsoleBuildPlugin : Plugin<Project> {
attributes(
"Manifest-Version" to "1",
"Implementation-Vendor" to "Mamoe Technologies",
"Implementation-Title" to target.name.toString(),
"Implementation-Version" to target.version.toString() + "+" + gitVersion
"Implementation-Title" to target.name,
"Implementation-Version" to target.version.toString() //+ "+" + gitVersion
)
}
@Suppress("UNCHECKED_CAST")
@ -120,6 +120,7 @@ fun Project.findLatestFile(): Pair<String, File> {
} ?: error("cannot find any file to upload")*/
}
/*
val gitVersion: String by lazy {
runCatching {
val exec = Runtime.getRuntime().exec("git rev-parse HEAD")
@ -132,3 +133,4 @@ val gitVersion: String by lazy {
return@lazy "UNKNOWN"
}.getOrThrow()
}
*/

View File

@ -10,6 +10,6 @@
package net.mamoe.mirai.console.gradle
internal object VersionConstants {
const val CONSOLE_VERSION = "1.0-RC-dev-28" // value is written here automatically during build
const val CONSOLE_VERSION = "1.0-RC-dev-29" // value is written here automatically during build
const val CORE_VERSION = "1.3.0" // value is written here automatically during build
}