Explorar o código

chore(mix): copy emqx_ctl to release as well

Thales Macedo Garitezi %!s(int64=4) %!d(string=hai) anos
pai
achega
432faf7bd2
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      mix.exs

+ 8 - 4
mix.exs

@@ -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(
-      "bin/emqx",
-      Path.join(bin, "emqx"),
-      force: overwrite?
+    Enum.each(
+      [
+        "emqx",
+        "emqx_ctl"
+      ],
+      &File.chmod!(Path.join(bin, &1), 0o755)
     )
     )
 
 
     release
     release