jbang icon indicating copy to clipboard operation
jbang copied to clipboard

Add bootstrappable jars

Open maxandersen opened this issue 11 months ago • 3 comments

Saw https://mill-build.org/blog/5-executable-jars.html and wondered if jbang export shouldn't have option to Exec jar this way using Java but also one using jbang to run and fetch deps using jbang.

maxandersen avatar Jan 04 '25 02:01 maxandersen

addon for this is to have JBang-Deps: in metainf/manifest which we could download deps.

maxandersen avatar Jan 16 '25 11:01 maxandersen

Took a look at this again and although it's a neat trick, the fact that on Windows you'd need to rename the file to end with ".bat" defeats the "easy of use" IMO.

quintesse avatar Feb 05 '25 16:02 quintesse

@quintesse mind you we already have a linux/mac only header line - that line won't work on windows either without you running in a linux/mac like terminal...and here this trick works without .bat rename afaik?

thus I wouldn't say that should make us not support it.

maxandersen avatar Mar 01 '25 06:03 maxandersen