From 3b2a6689be07b234f0984aad51e51399f480366c Mon Sep 17 00:00:00 2001 From: "henry.chen" Date: Sat, 1 Oct 2022 21:18:53 +0800 Subject: [PATCH] chore: update --- scripts/dist_tar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dist_tar.sh b/scripts/dist_tar.sh index e552643..afe9113 100755 --- a/scripts/dist_tar.sh +++ b/scripts/dist_tar.sh @@ -10,8 +10,8 @@ for file in pkg/core/*; do # tar platform for os in linux darwin windows; do _target="$app-$_tag.$os-$_arch.tar.gz" - CGO_ENABLED=0 GOOS=$os GOARCH=$_arch \ - go build -tags prod -o backend "./cmd/$app" + GOOS=$os GOARCH=$_arch \ + go build -tags prod -ldflags '-extldflags "-static"' -o backend "./cmd/$app" if [ "$app" = "eiblog" ]; then tar czf $_target conf website assets backend else