1
0

ref: 打包脚本调整

This commit is contained in:
TsMask
2025-03-20 15:30:31 +08:00
parent f35c535a77
commit 0f1aae7c9a
4 changed files with 132 additions and 6 deletions

11
pkg.sh
View File

@@ -77,16 +77,21 @@ if [ -n "$BuildApi" ]; then
echo "===> go build sshsvc copy to $output"
# Vendor Database
output=$BuildDir/linux/usr/local/etc/omc
dirs="database default vendor"
for v in ${dirs}; do
path=$BuildDir/tmp/usr/local/etc/omc
rm -rf ${path}/${v}
cp -rf ${ApiDir}/build/${v} ${path}/${v}
rm -rf ${output}/${v}
cp -rf ${ApiDir}/build/${v} ${output}/${v}
done
echo
echo "===> vendor data copy to $output"
fi
# =================== deb/rpm
echo
bash $BuildDir/build.sh -v $VERSION
# Compile the front-end and back-end and then package the version
# bash pkg.sh --web --api -v 2.2503.2
# Packaged version of just the last compiled file/build directory
# bash pkg.sh -v 2.2503.2