jbang icon indicating copy to clipboard operation
jbang copied to clipboard

Add "package" command to make something that can be shipped and run anywhere

Open maxandersen opened this issue 5 years ago • 6 comments

idea from https://twitter.com/DJ_Madie/status/1266363948908998656

usecase is to build/package something that can be run in isolation(offline)

challenge is how to package it "just" runs...

maxandersen avatar May 30 '20 07:05 maxandersen

thank you for including my suggestion.

wkremser avatar May 31 '20 09:05 wkremser

Doesn't the "--native" option basically already give you that?

quintesse avatar Jun 15 '20 14:06 quintesse

yes and no. --native attempts to create a native binary but that only works with dependencies that are "outofthebox" graalvm native-image friendly.

Idea from this one is to be able to have the ~/.jbang/cache pre-created and ready to run...

probably need the jbang build command to just do the build and if you set the JBANG_CACHE_DIR you should be set to copy/ship it.

maxandersen avatar Jun 16 '20 07:06 maxandersen

Yeah, you're right of course that native isn't ready for that yet. So perhaps some kind of uber-jar solution? Or does that have drawbacks as well?

quintesse avatar Jun 16 '20 09:06 quintesse

#508 has something related to this specific to --native (I found this issue before creating that one by searching if this exists).

vorburger avatar Nov 15 '20 13:11 vorburger

I Think we got uberjar, and ability to Build that caches so i think it is covered.

Original tweet been deleted so cant check. Closing until convinced otherwise.

maxandersen avatar Sep 29 '25 20:09 maxandersen