mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 23:20:09 +08:00
Graphical: executable JAR
This commit is contained in:
parent
b6fb0f06ef
commit
34bece6622
@ -13,6 +13,13 @@ javafx {
|
|||||||
|
|
||||||
apply(plugin = "com.github.johnrengelman.shadow")
|
apply(plugin = "com.github.johnrengelman.shadow")
|
||||||
|
|
||||||
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
|
||||||
|
manifest {
|
||||||
|
attributes["Main-Class"] = "net.mamoe.mirai.console.graphical.MiraiGraphicalLoader"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
val kotlinVersion: String by rootProject.ext
|
val kotlinVersion: String by rootProject.ext
|
||||||
val atomicFuVersion: String by rootProject.ext
|
val atomicFuVersion: String by rootProject.ext
|
||||||
val coroutinesVersion: String by rootProject.ext
|
val coroutinesVersion: String by rootProject.ext
|
||||||
@ -41,4 +48,4 @@ dependencies {
|
|||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,11 @@ import tornadofx.App
|
|||||||
import tornadofx.find
|
import tornadofx.find
|
||||||
import tornadofx.launch
|
import tornadofx.launch
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
object MiraiGraphicalLoader {
|
||||||
launch<MiraiGraphicalUI>(args)
|
@JvmStatic
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
launch<MiraiGraphicalUI>(args)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MiraiGraphicalUI : App(Decorator::class, PrimaryStyleSheet::class) {
|
class MiraiGraphicalUI : App(Decorator::class, PrimaryStyleSheet::class) {
|
||||||
|
Loading…
Reference in New Issue
Block a user