Skip to content

Commit

Permalink
Use a custom task to run electron (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 authored Oct 10, 2021
1 parent eb9d35c commit 1f13e1d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"
)
}
}
}

0 comments on commit 1f13e1d

Please sign in to comment.