From 07c80f4031b77551b9eea9b8a9f6c0517f5fddd3 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 25 Jun 2023 22:46:40 +0200 Subject: [PATCH] build: copy ee-examples for Enterprise edition elixir build --- mix.exs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mix.exs b/mix.exs index 5ded486c9..ac547ecae 100644 --- a/mix.exs +++ b/mix.exs @@ -543,6 +543,19 @@ defmodule EMQXUmbrella.MixProject do force: overwrite? ) + # copy /rel/config/ee-examples if profile is enterprise + case profile do + "emqx-enterprise" -> + File.cp_r!( + "rel/config/ee-examples", + Path.join(etc, "examples"), + force: overwrite? + ) + + _ -> + :ok + end + # this is required by the produced escript / nodetool Mix.Generator.copy_file( Path.join(release.version_path, "start_clean.boot"),