mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 13:50:12 +08:00
Remove gitVersion
This commit is contained in:
parent
05c5e60492
commit
5af02a4b73
@ -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()
|
||||
}
|
||||
*/
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user