build: mix build version per edition type

This commit is contained in:
Zaiming (Stone) Shi 2022-01-25 11:11:45 +01:00
parent 391e480824
commit d2a0b163da
1 changed files with 2 additions and 1 deletions

View File

@ -520,9 +520,10 @@ defmodule EMQXUmbrella.MixProject do
end end
defp pkg_vsn() do defp pkg_vsn() do
%{edition_type: edition_type} = read_inputs()
basedir = Path.dirname(__ENV__.file) basedir = Path.dirname(__ENV__.file)
script = Path.join(basedir, "pkg-vsn.sh") script = Path.join(basedir, "pkg-vsn.sh")
{str_vsn, 0} = System.cmd(script, []) {str_vsn, 0} = System.cmd(script, [Atom.to_string(edition_type)])
String.trim(str_vsn) String.trim(str_vsn)
end end