0

Is there any way to get the version number(1.2.3, the following case) in release build? The package is build in distillery.

  def project do
    [app: :sample,
     version: "1.2.3",
     elixir: "~> 1.3",
     elixirc_paths: elixirc_paths(Mix.env),
     compilers: [:phoenix, :gettext] ++ Mix.compilers,
     build_embedded: (Mix.env == :stg) or (Mix.env == :prod),
     start_permanent: (Mix.env == :stg) or (Mix.env == :prod),
     aliases: aliases,
     deps: deps]
  end
hykw
  • 680
  • 4
  • 18
  • This is a duplicate of [Another StackOverflow Question](http://stackoverflow.com/questions/32968253/access-project-version-within-elixir-application) – C Russo Dec 21 '16 at 03:15
  • Thank you, that's just what I wanted :-) – hykw Dec 21 '16 at 06:40
  • Possible duplicate of [Access project version within elixir application](https://stackoverflow.com/questions/32968253/access-project-version-within-elixir-application) – mikl Aug 13 '19 at 11:09

0 Answers0