优化编译脚本

This commit is contained in:
刘祥超
2021-12-01 14:24:56 +08:00
parent 2397695a2d
commit 32a3e08332

View File

@@ -5,6 +5,7 @@ function build() {
NAME="edge-node"
VERSION=$(lookup-version $ROOT/../internal/const/const.go)
DIST=$ROOT/"../dist/${NAME}"
MUSL_DIR="/usr/local/opt/musl-cross/bin"
OS=${1}
ARCH=${2}
TAG=${3}
@@ -53,7 +54,6 @@ function build() {
echo "building ..."
MUSL_DIR="/usr/local/opt/musl-cross/bin"
CC_PATH=""
CXX_PATH=""
if [[ `uname -a` == *"Darwin"* && "${OS}" == "linux" ]]; then