summaryrefslogtreecommitdiff
path: root/desktop/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/build.gradle.kts')
-rw-r--r--desktop/build.gradle.kts7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts
index d143c5f..e0fd832 100644
--- a/desktop/build.gradle.kts
+++ b/desktop/build.gradle.kts
@@ -19,6 +19,8 @@ compose.desktop {
mainClass = "coffee.liz.rookery.desktop.MainKt"
jvmArgs += listOf("-Xmx256m", "-XX:+UseSerialGC")
nativeDistributions {
+ // From `./gradlew :desktop:suggestRuntimeModules`; jdk.security.auth is needed by dbus-java (Bluetooth).
+ modules("java.instrument", "jdk.security.auth", "jdk.unsupported")
targetFormats(TargetFormat.AppImage, TargetFormat.Deb)
packageName = "rookery"
packageVersion = "0.1.0"
@@ -27,4 +29,7 @@ compose.desktop {
}
// `./gradlew :desktop:run --args="--import file.txt"` passes args through; env lets tests point at a scratch home.
-tasks.withType<JavaExec>().configureEach { environment.putAll(System.getenv().filterKeys { it.startsWith("XDG_") || it.startsWith("ROOKERY_") }) }
+tasks.withType<JavaExec>().configureEach {
+ environment.putAll(System.getenv().filterKeys { it.startsWith("XDG_") || it.startsWith("ROOKERY_") })
+ standardInput = System.`in` // so `--cube monitor` can take commands
+}