From 0f63e08c22ff510510ebc2860df6f7ea0ef03964 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 23 Aug 2023 17:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/build.sh b/build/build.sh index e9b40c9..92670e0 100755 --- a/build/build.sh +++ b/build/build.sh @@ -121,6 +121,11 @@ function build() { env GOOS="${OS}" GOARCH="${ARCH}" CGO_ENABLED=1 go build -trimpath -tags $BUILD_TAG -o "$DIST"/bin/${NAME} -ldflags="-s -w" "$ROOT"/../cmd/edge-node/main.go fi + if [ ! -f "${DIST}/bin/${NAME}" ]; then + echo "build failed!" + exit + fi + # delete hidden files find "$DIST" -name ".DS_Store" -delete find "$DIST" -name ".gitignore" -delete