From d2a0b163da46e9912c39bfc1f00859c388443cb2 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Tue, 25 Jan 2022 11:11:45 +0100 Subject: [PATCH] build: mix build version per edition type --- mix.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 5dc97264f..88a243e58 100644 --- a/mix.exs +++ b/mix.exs @@ -520,9 +520,10 @@ defmodule EMQXUmbrella.MixProject do end defp pkg_vsn() do + %{edition_type: edition_type} = read_inputs() basedir = Path.dirname(__ENV__.file) 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) end