From 2c9b9137df60aae7551cd62b1ddf56312919cfeb Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sun, 24 May 2026 21:05:25 -0400 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 357383e..28201e2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -54,10 +54,11 @@ dependencies { val frontendDir = layout.projectDirectory.dir("src/main/frontend") val frontendOutputDir = layout.buildDirectory.dir("generated/frontend-resources/httpd/app") +val bunExecutable = findProperty("bunPath")?.toString() ?: "bun" tasks.register("bunInstallFrontend") { workingDir = frontendDir.asFile - commandLine("bun", "install", "--frozen-lockfile") + commandLine(bunExecutable, "install", "--frozen-lockfile") inputs.files( frontendDir.file("package.json"), frontendDir.file("bun.lock") @@ -67,7 +68,7 @@ tasks.register("bunInstallFrontend") { tasks.register("buildFrontend") { workingDir = frontendDir.asFile - commandLine("bun", "run", "build") + commandLine(bunExecutable, "run", "build") dependsOn("bunInstallFrontend") inputs.dir(frontendDir.dir("src")) inputs.files(