From 0a6e2d596b731f9fe0157373c354eab6164bfd6c Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 5 Mar 2022 11:49:44 +0100 Subject: [PATCH] build: fix update-appup for ee --- scripts/update-appup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/update-appup.sh b/scripts/update-appup.sh index db0759695..11cef1ab0 100755 --- a/scripts/update-appup.sh +++ b/scripts/update-appup.sh @@ -59,5 +59,10 @@ fi PACKAGE_NAME="${PROFILE}-${SYSTEM}-${PREV_VERSION}-${ARCH}.zip" DOWNLOAD_URL="https://www.emqx.com/downloads/${DIR}/v${PREV_VERSION}/${PACKAGE_NAME}" +if [ ! -f EMQX_ENTERPRISE ]; then + SRC_DIRS='{src,apps,lib-ce}/**' +else + SRC_DIRS='{src,apps,lib-ee}/**' +fi # shellcheck disable=SC2086 -./scripts/update_appup.escript --make-command "make ${PROFILE}-rel" --binary-rel-url "$DOWNLOAD_URL" $ESCRIPT_ARGS "$PREV_VERSION" +./scripts/update_appup.escript --make-command "make ${PROFILE}-rel" --binary-rel-url "$DOWNLOAD_URL" --release-dir "_build/${PROFILE}/rel/emqx/lib" --src-dirs "${SRC_DIRS}" $ESCRIPT_ARGS "$PREV_VERSION"