mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-30 01:22:28 +00:00
fix build script
This commit is contained in:
6
build.sh
6
build.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user