fix build script

This commit is contained in:
Yuli
2024-05-08 12:44:07 +03:00
parent cdd19ba7d4
commit 570e2fc304

View File

@@ -20,15 +20,15 @@ go get -d -v
if [ -x "~/go/bin/packr" ]; then
~/go/bin/packr
elif [ -x "packr" ]; then
else
packr
fi
go build -v -ldflags="-s -w -X main.version=$FULL_VERSION" -o ../databunker
CGO_ENABLED=0 go build -v -ldflags="-s -w -X main.version=$FULL_VERSION" -o ../databunker
if [ -x "~/go/bin/packr" ]; then
~/go/bin/packr clean
elif [ -x "packr" ]; then
else
packr clean
fi