Suppose I have a CLI application with subcommands and arguments (like application foo --bar baz
). How can I package it for distribution without requiring user to install Erlang?
I know there's mix escript
Mix task, but it builds a binary that requires Erlang to be installed, also Mix reference states that escripts should be used only for development purposes.
mix release
, however, produces redundant shell scripts that I don't want to see in dist.
So, is there a way to make a standalone distributable of an Elixir CLI application?
P. S. This is actually my first experience with Elixir (and the whole Erlang ecosystem)