babashka

dabrazhe 2025-09-26T13:03:26.900839Z

Hey, what was the way to distribute a bb app/script or task to other unsuspecting) individuals without the whole bb, java, etc. ecosystem installed?

✅ 1
borkdude 2025-09-26T13:05:18.242409Z

Do you mean the uberjar -> executable trick?

dabrazhe 2025-09-26T13:31:49.787289Z

I am not sure. Imagine I have bb script and would like to give it to someone who never heard of bb or Clojure without going into a an elaborate discussion on CLJ, Lisp and history of FP. They may have no java installed or it's java 8 because they only use typescript in their work. Or bash

dabrazhe 2025-09-26T13:32:47.481889Z

Ideally without having them install bb either

borkdude 2025-09-26T13:33:02.382039Z

Yes, that is the self-executing binary described in the wiki

1
dabrazhe 2025-09-26T13:53:30.113509Z

I guess that the size of 72M for http://hello.bj is for packaging bb graal vm with the jar (7 MB)?

dabrazhe 2025-09-26T14:16:53.644589Z

Made a change to the doc for clarity see if you approve, starting at Bundle the jar with bb, https://github.com/babashka/babashka/wiki/Self-contained-executable

borkdude 2025-09-26T14:34:07.871929Z

sorry, but that's counter to what the docs suggest: download a bb version which may be even for a different os, unpack it to the local dir and then use the local path

✔️ 1
borkdude 2025-09-26T14:34:15.447839Z

so please revert the edit

borkdude 2025-09-26T14:35:15.380919Z

I think we can clarify why this is the suggested way: mention that you can do this for each of the OSes you want to build for

dabrazhe 2025-09-26T14:37:52.380139Z

I agree, but for those how have bb installed, most likely via brew /curl and setup a path ./bb won't be the local path

borkdude 2025-09-26T14:38:24.747139Z

in that case you are only building for people that have the same OS as you have

borkdude 2025-09-26T14:39:56.800179Z

I'll add some text to clarify it.

borkdude 2025-09-26T14:40:07.483429Z

if you want to package your local bb I'll mention that too

✔️ 1
asolovyov 2025-09-30T07:20:33.554629Z

@dennisa what we're doing is that we have shell script that will download bb (a specified version) if it's not there yet; so it's not completely self-contained, but 🤷‍♂️

👍 1
dabrazhe 2025-09-30T09:15:19.253599Z

Yeah, thank you For now a documentation update would be good, it's qutie a bit confusing, i'd address the clear step to create the uberjar, download a platform specific bb exec and package the artifact

borkdude 2025-09-30T09:16:55.073199Z

@asolovyov means he is not creating a self-contained executable, but just downloads bb on the platform where the script is running

✔️ 1
1