Commit f5165f7d authored by Karlatemp's avatar Karlatemp Committed by GitHub

Add Manifest; Disabling SwingSolver with vm property `mirai.no-desktop` (#362)

* Disabling SwingSolver with vm property 'mirai.no-desktop'

// for ssh
// java -Dmirai.no-desktop ....

* Add Manifest

* Removed Per-Entry Attributes
Co-authored-by: default avatarHim188 <Him188@mamoe.net>
parent f74ee547
......@@ -134,6 +134,7 @@ Demos: [mirai-demos](https://github.com/mamoe/mirai-demos)
- 酷Q的插件可以在 mirai 中加载, 详见 [Mirai-Native](https://github.com/iTXTech/mirai-native)
- 使用 `酷Q HTTP API` 的插件将可以在 mirai 中加载,`Mirai-CQ-Adapter` 正在进行中
## [贡献](CONTRIBUTING.md)
我们欢迎一切形式的贡献。
......
......@@ -93,6 +93,14 @@ subprojects {
file.name.endsWith(".sf", ignoreCase = true)
.also { if (it) println("excluded ${file.name}") }
}
this.manifest {
this.attributes(
"Manifest-Version" to 1,
"Implementation-Vendor" to "Mamoe Technologies",
"Implementation-Title" to this@afterEvaluate.name.toString(),
"Implementation-Version" to this@afterEvaluate.version.toString()
)
}
}
val githubUpload by tasks.creating {
......
......@@ -28,7 +28,7 @@ import javax.swing.SwingUtilities
internal object WindowHelperJvm {
internal val isDesktopSupported: Boolean =
kotlin.runCatching {
Desktop.isDesktopSupported()
System.getProperty("mirai.no-desktop") === null && Desktop.isDesktopSupported()
}.getOrElse {
false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment