From c377534861f412a414b1a6b793e4ca9d630d9d10 Mon Sep 17 00:00:00 2001 From: ketsuban Date: Tue, 25 Aug 2026 17:24:47 +0000 Subject: Fix desktop bundle layout (lib/ + bin/), add per-bundle READMEs --- build.gradle.kts | 2 +- ci/desktop-README.txt | 5 +++++ ci/launchers/kukuri.sh | 3 ++- ci/native-README.txt | 5 +++++ ci/wasm-README.txt | 6 ++++++ 5 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 ci/desktop-README.txt create mode 100644 ci/native-README.txt create mode 100644 ci/wasm-README.txt diff --git a/build.gradle.kts b/build.gradle.kts index 31a0159..61484d5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -102,7 +102,7 @@ tasks.register("bundleDesktop") { group = "deployment" description = "Desktop distribution: JVM jar + launcher" dependsOn("assemble") - from(tasks.named("jvmJar")) + from(tasks.named("jvmJar")) { into("lib") } from(file("$rootDir/ci/launchers/kukuri.sh")) { into("bin"); filePermissions { unix("rwxr-xr-x") } } archiveFileName.set("kukuri-desktop-${project.version}.zip") } diff --git a/ci/desktop-README.txt b/ci/desktop-README.txt new file mode 100644 index 0000000..a53a7c3 --- /dev/null +++ b/ci/desktop-README.txt @@ -0,0 +1,5 @@ +kukuri Desktop (JVM) bundle + +Usage: + unzip kukuri-desktop-.zip + ./bin/kukuri.sh (requires java 21+ on PATH) diff --git a/ci/launchers/kukuri.sh b/ci/launchers/kukuri.sh index e305e1c..5719cee 100644 --- a/ci/launchers/kukuri.sh +++ b/ci/launchers/kukuri.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh # Desktop launcher - resolves the kukuri-jvm jar next to this script's lib/ dir. DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) -exec java -jar "$DIR"/../lib/kukuri-jvm-*.jar "$@" +JAR=$(ls "$DIR"/../lib/kukuri-jvm-*.jar 2>/dev/null || ls "$DIR"/kukuri-jvm-*.jar | head -1) +exec java -jar "$JAR" "$@" diff --git a/ci/native-README.txt b/ci/native-README.txt new file mode 100644 index 0000000..628b719 --- /dev/null +++ b/ci/native-README.txt @@ -0,0 +1,5 @@ +kukuri Linux x64 native bundle + +Usage: + unzip kukuri-native-linuxx64-.zip + chmod +x kukuri.kexe && ./kukuri.kexe diff --git a/ci/wasm-README.txt b/ci/wasm-README.txt new file mode 100644 index 0000000..8c47d45 --- /dev/null +++ b/ci/wasm-README.txt @@ -0,0 +1,6 @@ +kukuri WasmJs (Node) runtime bundle + +Usage: + unzip kukuri-wasm-node-.zip + cd && npm install + node kotlin/kukuri-wasm-js.mjs -- cgit v1.2.1