perf: 构建工具调整

This commit is contained in:
TsMask
2025-03-18 15:07:21 +08:00
parent 8d7956a4c9
commit 07e4d3fa63
2 changed files with 10 additions and 8 deletions

8
pkg.sh
View File

@@ -27,7 +27,7 @@ while [[ $# -gt 0 ]]; do
esac
done
# ===================
# =================== Web
echo
# Determine if -web is passed in
if [ -n "$BuildWeb" ]; then
@@ -44,7 +44,7 @@ fi
cd $RootDir
# ===================
# =================== sshsvc
echo
cd $RootDir/sshsvc
make
@@ -53,7 +53,7 @@ cp -rf sshsvc $RootDir/build/linux/usr/local/bin/sshsvc
echo "===> go build sshsvc copy to /build/linux/usr/local/bin"
# ===================
# =================== omc
echo
MOD_CONFIG="be.ems/src/framework/config"
go build -o omc -v -ldflags "-s -w -X '$MOD_CONFIG.Version=$VERSION' -X '$MOD_CONFIG.BuildTime=$(date)' -X '$MOD_CONFIG.GoVer=$(go version)'"
@@ -62,6 +62,6 @@ cp -rf omc $RootDir/build/linux/usr/local/bin/omc
echo "===> go build omc copy to /build/linux/usr/local/bin"
# ===================
# =================== deb/rpm
echo
bash $RootDir/build/build.sh -v $VERSION