mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Use a custom task to run electron (#220)
This commit is contained in:
@@ -74,12 +74,6 @@ dependencies {
|
|||||||
|
|
||||||
application {
|
application {
|
||||||
mainClass.set(MainClass)
|
mainClass.set(MainClass)
|
||||||
|
|
||||||
// uncomment for testing electron
|
|
||||||
// applicationDefaultJvmArgs = listOf(
|
|
||||||
// "-Dsuwayomi.tachidesk.config.server.webUIInterface=electron",
|
|
||||||
// "-Dsuwayomi.tachidesk.config.server.electronPath=/usr/bin/electron"
|
|
||||||
// )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -164,4 +158,16 @@ tasks {
|
|||||||
|
|
||||||
overwrite(shouldOverwrite())
|
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"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user