Skip to content

Commit 2c9b913

Browse files
committed
Update build.gradle.kts
1 parent 8a31a56 commit 2c9b913

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ dependencies {
5454

5555
val frontendDir = layout.projectDirectory.dir("src/main/frontend")
5656
val frontendOutputDir = layout.buildDirectory.dir("generated/frontend-resources/httpd/app")
57+
val bunExecutable = findProperty("bunPath")?.toString() ?: "bun"
5758

5859
tasks.register<Exec>("bunInstallFrontend") {
5960
workingDir = frontendDir.asFile
60-
commandLine("bun", "install", "--frozen-lockfile")
61+
commandLine(bunExecutable, "install", "--frozen-lockfile")
6162
inputs.files(
6263
frontendDir.file("package.json"),
6364
frontendDir.file("bun.lock")
@@ -67,7 +68,7 @@ tasks.register<Exec>("bunInstallFrontend") {
6768

6869
tasks.register<Exec>("buildFrontend") {
6970
workingDir = frontendDir.asFile
70-
commandLine("bun", "run", "build")
71+
commandLine(bunExecutable, "run", "build")
7172
dependsOn("bunInstallFrontend")
7273
inputs.dir(frontendDir.dir("src"))
7374
inputs.files(

0 commit comments

Comments
 (0)