Use a custom task to run electron (#220)

This commit is contained in:
Mitchell Syer
2021-10-10 16:46:32 -04:00
committed by GitHub
parent eb9d35c123
commit 1f13e1d08b

View File

@@ -74,12 +74,6 @@ dependencies {
application {
mainClass.set(MainClass)
// uncomment for testing electron
// applicationDefaultJvmArgs = listOf(
// "-Dsuwayomi.tachidesk.config.server.webUIInterface=electron",
// "-Dsuwayomi.tachidesk.config.server.electronPath=/usr/bin/electron"
// )
}
sourceSets {
@@ -164,4 +158,16 @@ tasks {
overwrite(shouldOverwrite())
}
register("runElectron") {
group = "application"
finalizedBy(run)
doFirst {
application.applicationDefaultJvmArgs = listOf(
"-Dsuwayomi.tachidesk.config.server.webUIInterface=electron",
// Change this to the installed electron application
"-Dsuwayomi.tachidesk.config.server.electronPath=/usr/bin/electron"
)
}
}
}