优化编译脚本

This commit is contained in:
GoEdgeLab
2021-12-01 14:24:56 +08:00
parent 13b3f9bb33
commit d76988a525

View File

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