7 Star 37 Fork 8

Gitee 极速下载/emqx-neuron

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/emqx/neuron
克隆/下载
package-sdk.sh 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
fengzero 提交于 2023-08-24 06:38 . package: neuron.json
#!/bin/bash
arch=x86_64-linux-gnu
package_name=neuron-sdk
function usage() {
echo "Usage: $0 "
echo "-n package name [default: ${package_name}]"
echo "-p target platform compiler prefix (opts: x86_64-linux-gnu, arm-linux-gnueabihf, aarch64-linux-gnu, ...)[default: x86_64-linux-gnu]"
}
while getopts "p:n:h-:" OPT; do
case ${OPT} in
p)
arch=$OPTARG
;;
n)
package_name=$OPTARG
;;
h)
usage
exit 0
;;
\?)
usage
exit 1
;;
esac
done
rm -rf ${package_name}/*
mkdir -p $package_name/include/neuron/
mkdir -p $package_name/lib
mkdir -p $package_name/config
mkdir -p $package_name/plugins/schema
cp sdk-install.sh ${package_name}/
cp neuron.conf ${package_name}/
cp cmake/neuron-config.cmake ${package_name}/
cp -r include/* ${package_name}/include/
cp -r build/dist ${package_name}/
cp build/neuron ${package_name}
cp build/libneuron-base.so ${package_name}/lib
cp /usr/local/lib/libzlog.so.1.2 ${package_name}/lib
cp persistence/*.sql ${package_name}/config/
cp sdk-zlog.conf ${package_name}/config/
cp zlog.conf ${package_name}/config/
cp dev.conf ${package_name}/config/
cp neuron.key ${package_name}/config/
cp neuron.pem ${package_name}/config/
cp default_plugins.json ${package_name}/config/
cp neuron.json ${package_name}/config/
cp build/plugins/schema/ekuiper.json \
build/plugins/schema/monitor.json \
build/plugins/schema/mqtt.json \
build/plugins/schema/modbus-tcp.json \
build/plugins/schema/file.json \
${package_name}/plugins/schema/
cp build/plugins/libplugin-ekuiper.so \
build/plugins/libplugin-monitor.so \
build/plugins/libplugin-mqtt.so \
build/plugins/libplugin-modbus-tcp.so \
build/plugins/libplugin-file.so \
${package_name}/plugins/
tar czf ${package_name}-${arch}.tar.gz ${package_name}/
ls ${package_name}
rm -rf ${package_name}
echo "${package_name}-${arch}.tar.gz"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/emqx-neuron.git
git@gitee.com:mirrors/emqx-neuron.git
mirrors
emqx-neuron
emqx-neuron
main

搜索帮助