chore: update release script for3.0 (#14786)
* chore: add libtaos-ws for 3.0 * chore: update taosws-rs * chore: add libtaosws to install/remove script * chore: update taosws-rs * chore: update taosws-rs * chore: update taos-tools, taosws-rs for 3.0 * fix: packaging/tools/make_install.sh for 3.0 * chore: update taos-tools * chore: fix release script for 3.0
This commit is contained in:
parent
177814f6eb
commit
37fbb2c624
|
@ -328,7 +328,7 @@ function install_header() {
|
||||||
${csudo}ln -s ${install_main_dir}/include/taoserror.h ${inc_link_dir}/taoserror.h
|
${csudo}ln -s ${install_main_dir}/include/taoserror.h ${inc_link_dir}/taoserror.h
|
||||||
${csudo}ln -s ${install_main_dir}/include/taosudf.h ${inc_link_dir}/taosudf.h
|
${csudo}ln -s ${install_main_dir}/include/taosudf.h ${inc_link_dir}/taosudf.h
|
||||||
|
|
||||||
${csudo}ln -s ${install_main_dir}/include/taosws.h ${inc_link_dir}/taosws.h || :
|
[ -f ${install_main_dir}/include/taosws.h ] && ${csudo}ln -s ${install_main_dir}/include/taosws.h ${inc_link_dir}/taosws.h || :
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_newHostname_to_hosts() {
|
function add_newHostname_to_hosts() {
|
||||||
|
|
|
@ -161,13 +161,11 @@ if [[ $productName == "TDengine" ]]; then
|
||||||
mkdir -p ${install_dir}/connector
|
mkdir -p ${install_dir}/connector
|
||||||
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
||||||
if [ "$osType" != "Darwin" ]; then
|
if [ "$osType" != "Darwin" ]; then
|
||||||
cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
|
[ -f ${build_dir}/lib/*.jar ] && cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
|
||||||
fi
|
|
||||||
if find ${connector_dir}/go -mindepth 1 -maxdepth 1 | read; then
|
|
||||||
cp -r ${connector_dir}/go ${install_dir}/connector
|
|
||||||
else
|
|
||||||
echo "WARNING: go connector not found, please check if want to use it!"
|
|
||||||
fi
|
fi
|
||||||
|
git clone --depth 1 https://github.com/taosdata/driver-go ${install_dir}/connector/go
|
||||||
|
rm -rf ${install_dir}/connector/go/.git ||:
|
||||||
|
|
||||||
git clone --depth 1 https://github.com/taosdata/taos-connector-python ${install_dir}/connector/python
|
git clone --depth 1 https://github.com/taosdata/taos-connector-python ${install_dir}/connector/python
|
||||||
rm -rf ${install_dir}/connector/python/.git ||:
|
rm -rf ${install_dir}/connector/python/.git ||:
|
||||||
# cp -r ${connector_dir}/python ${install_dir}/connector
|
# cp -r ${connector_dir}/python ${install_dir}/connector
|
||||||
|
|
|
@ -290,19 +290,17 @@ fi
|
||||||
|
|
||||||
# Copy driver
|
# Copy driver
|
||||||
mkdir -p ${install_dir}/driver && cp ${lib_files} ${install_dir}/driver && echo "${versionComp}" >${install_dir}/driver/vercomp.txt
|
mkdir -p ${install_dir}/driver && cp ${lib_files} ${install_dir}/driver && echo "${versionComp}" >${install_dir}/driver/vercomp.txt
|
||||||
cp ${wslib_files} ${install_dir}/driver || :
|
[ -f ${wslib_files} ] && cp ${wslib_files} ${install_dir}/driver || :
|
||||||
|
|
||||||
# Copy connector
|
# Copy connector
|
||||||
if [ "$verMode" == "cluster" ]; then
|
if [ "$verMode" == "cluster" ]; then
|
||||||
connector_dir="${code_dir}/connector"
|
connector_dir="${code_dir}/connector"
|
||||||
mkdir -p ${install_dir}/connector
|
mkdir -p ${install_dir}/connector
|
||||||
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
||||||
cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
|
[ -f ${build_dir}/lib/*.jar ] && cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
|
||||||
if find ${connector_dir}/go -mindepth 1 -maxdepth 1 | read; then
|
git clone --depth 1 https://github.com/taosdata/driver-go ${install_dir}/connector/go
|
||||||
cp -r ${connector_dir}/go ${install_dir}/connector
|
rm -rf ${install_dir}/connector/go/.git ||:
|
||||||
else
|
|
||||||
echo "WARNING: go connector not found, please check if want to use it!"
|
|
||||||
fi
|
|
||||||
git clone --depth 1 https://github.com/taosdata/taos-connector-python ${install_dir}/connector/python
|
git clone --depth 1 https://github.com/taosdata/taos-connector-python ${install_dir}/connector/python
|
||||||
rm -rf ${install_dir}/connector/python/.git ||:
|
rm -rf ${install_dir}/connector/python/.git ||:
|
||||||
|
|
||||||
|
@ -314,6 +312,7 @@ if [ "$verMode" == "cluster" ]; then
|
||||||
|
|
||||||
git clone --depth 1 https://github.com/taosdata/libtaos-rs ${install_dir}/connector/rust
|
git clone --depth 1 https://github.com/taosdata/libtaos-rs ${install_dir}/connector/rust
|
||||||
rm -rf ${install_dir}/connector/rust/.git ||:
|
rm -rf ${install_dir}/connector/rust/.git ||:
|
||||||
|
|
||||||
# cp -r ${connector_dir}/python ${install_dir}/connector
|
# cp -r ${connector_dir}/python ${install_dir}/connector
|
||||||
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
|
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -114,6 +114,7 @@ function clean_header() {
|
||||||
${csudo}rm -f ${inc_link_dir}/taos.h || :
|
${csudo}rm -f ${inc_link_dir}/taos.h || :
|
||||||
${csudo}rm -f ${inc_link_dir}/taosdef.h || :
|
${csudo}rm -f ${inc_link_dir}/taosdef.h || :
|
||||||
${csudo}rm -f ${inc_link_dir}/taoserror.h || :
|
${csudo}rm -f ${inc_link_dir}/taoserror.h || :
|
||||||
|
${csudo}rm -f ${inc_link_dir}/taosudf.h || :
|
||||||
|
|
||||||
${csudo}rm -f ${inc_link_dir}/taosws.h || :
|
${csudo}rm -f ${inc_link_dir}/taosws.h || :
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue