build: no upgrade base for debian11 at version 4.4.2

This commit is contained in:
Zaiming (Stone) Shi 2022-03-31 22:32:47 +02:00
parent 9a6ca6adf5
commit 363242fd61
1 changed files with 16 additions and 1 deletions

17
build
View File

@ -136,7 +136,22 @@ make_zip() {
local tarball="${relpath}/${tarname}"
local target_zip="${pkgpath}/${pkgname}"
tar zxf "${tarball}" -C "${tard}/emqx"
if ! [[ $SYSTEM == windows* ]]; then
has_relup='yes'
case "$SYSTEM" in
windows*)
# no relup support for windows
has_relup='no'
;;
debian11)
case "$PKG_VSN" in
4.4.2*)
# this is the first version for debian11, no relup
has_relup='no'
;;
esac
;;
esac
if [ "$has_relup" = 'yes' ]; then
./scripts/inject-relup.escript "${tard}/emqx/releases/${PKG_VSN}/relup"
fi
cp_dyn_libs "${tard}/emqx"