chore(mix): copy emqx_ctl to release as well

This commit is contained in:
Thales Macedo Garitezi 2021-12-27 13:38:45 -03:00
parent a54e108296
commit 432faf7bd2
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 8 additions and 4 deletions

12
mix.exs
View File

@ -288,6 +288,8 @@ defmodule EMQXUmbrella.MixProject do
Enum.each( Enum.each(
[ [
"emqx",
"emqx_ctl",
"common_defs.sh", "common_defs.sh",
"common_defs2.sh", "common_defs2.sh",
"common_functions.sh" "common_functions.sh"
@ -299,10 +301,12 @@ defmodule EMQXUmbrella.MixProject do
) )
) )
Mix.Generator.copy_file( Enum.each(
"bin/emqx", [
Path.join(bin, "emqx"), "emqx",
force: overwrite? "emqx_ctl"
],
&File.chmod!(Path.join(bin, &1), 0o755)
) )
release release