BrunoBonacci / lein-binplus

A Leiningen plugin for producing standalone console executables that work on OS X, Linux, and Windows.
68 stars 5 forks source link

Custom preamble params #3

Closed cross closed 7 years ago

cross commented 7 years ago

Here's a working version of what I'm looking for. I'm sure the code is not ideal, I can pass it through someone on my team who actually uses clojure, but it will give you an idea what I'm thinking.

With this, and a :custom-preamble "#!/bin/sh\nexec java FLAGS -Xbootclasspath/a:$0 MAIN \"$@\"\n", I get what I was looking for. (I've effected the bootclasspath manually, as you see.)

Happy to hear suggested changes which I can make before you merge.