From 111b93b4ea4f03385ed5d741be3414be7edf92dd Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 5 Mar 2022 17:24:49 +0100 Subject: [PATCH] fix(update-appup): pass in --repo option even when download bin package the repo url is NOT used to clone the source, but used to determin the sub-dir name when extracting the zip package --- scripts/update-appup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/update-appup.sh b/scripts/update-appup.sh index 11cef1ab0..d70bfcf21 100755 --- a/scripts/update-appup.sh +++ b/scripts/update-appup.sh @@ -60,9 +60,17 @@ 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_REPO='emqx.git' SRC_DIRS='{src,apps,lib-ce}/**' else + SRC_REPO='emqx-enterprise.git' SRC_DIRS='{src,apps,lib-ee}/**' fi # shellcheck disable=SC2086 -./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" +./scripts/update_appup.escript \ + --make-command "make ${PROFILE}-rel" \ + --binary-rel-url "$DOWNLOAD_URL" \ + --repo "$SRC_REPO" \ + --release-dir "_build/${PROFILE}/rel/emqx/lib" \ + --src-dirs "${SRC_DIRS}" \ + $ESCRIPT_ARGS "$PREV_VERSION"