diff options
| author | ketsuban <ketsuban@192.168.3.110> | 2026-08-25 17:24:47 +0000 |
|---|---|---|
| committer | ketsuban <ketsuban@192.168.3.110> | 2026-08-25 17:24:47 +0000 |
| commit | c377534861f412a414b1a6b793e4ca9d630d9d10 (patch) | |
| tree | 4b2db58cce2d2c347c45ad4acfeae08ef72bc4f5 | |
| parent | d2a1998f9e7459d4981b11ee54cadab7754880ab (diff) | |
| download | kukuri-c377534861f412a414b1a6b793e4ca9d630d9d10.tar.gz kukuri-c377534861f412a414b1a6b793e4ca9d630d9d10.tar.bz2 kukuri-c377534861f412a414b1a6b793e4ca9d630d9d10.zip | |
Fix desktop bundle layout (lib/ + bin/), add per-bundle READMEs
| -rw-r--r-- | build.gradle.kts | 2 | ||||
| -rw-r--r-- | ci/desktop-README.txt | 5 | ||||
| -rw-r--r-- | ci/launchers/kukuri.sh | 3 | ||||
| -rw-r--r-- | ci/native-README.txt | 5 | ||||
| -rw-r--r-- | ci/wasm-README.txt | 6 |
5 files changed, 19 insertions, 2 deletions
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<Zip>("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-<ver>.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-<ver>.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-<ver>.zip + cd <dir> && npm install + node kotlin/kukuri-wasm-js.mjs |
