Hi,
I’ve got a script which I want to install system-wide (user-wide). In ~/.local/bin
, for instance.
.mise.toml
:
[tools]
elixir = '1.16.0-otp-26'
erlang = '26.2.1'
mix.exs
:
defmodule ExProcr.MixProject do
use Mix.Project
def project do
[
app: :pcx,
escript: escript_config(),
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:optimus, "~> 0.5.0"},
{:erlport, "~> 0.11.0"},
{:credo, "~> 1.7.7", only: [:dev, :test], runtime: false}
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
defp escript_config do
[
main_module: ExProcr.CLI
]
end
end
Probably, I should start with mix release
. What then? What would be the most natural way?