fix(stream): support packaging enterprise edition. (#30189)

This commit is contained in:
Haojun Liao 2025-03-17 09:14:25 +08:00 committed by GitHub
parent ac23a4fc55
commit fe2dbf6307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -45,10 +45,6 @@ release_dir="${top_dir}/release"
#package_name='linux'
install_dir="${release_dir}/${productName}-${version}"
if [ "$pagMode" == "lite" ]; then
strip ${build_dir}/bin/${serverName}
fi
cfg_dir="${top_dir}/cfg"
install_files="${script_dir}/install.sh"
@ -63,6 +59,11 @@ fi
# python files
mkdir -p ${install_dir}/bin && mkdir -p ${install_dir}/lib
# copy enterprise tools from outside
if [ "$edition" == "enterprise" ]; then
cp -r ${top_dir}/../../../enterprise/src/kit/tools/tdgpt/taosanalytics/misc/* ${top_dir}/taosanalytics/misc/ || :
fi
# remove cache files generated by Python interpreter
TARGET_PATTERN="__pycache__"
find "${top_dir}/taosanalytics/" -type d -name "$TARGET_PATTERN" -exec rm -rf {} +
@ -114,4 +115,9 @@ if [ "$exitcode" != "0" ]; then
exit $exitcode
fi
if [ "$edition" == "enterprise" ]; then
rm -f ${top_dir}/taosanalytics/misc/analytics* || :
echo -e "clean up"
fi
cd ${curr_dir}