mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-01 10:27:56 +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
|
if [ -x "~/go/bin/packr" ]; then
|
||||||
~/go/bin/packr
|
~/go/bin/packr
|
||||||
elif [ -x "packr" ]; then
|
else
|
||||||
packr
|
packr
|
||||||
fi
|
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
|
if [ -x "~/go/bin/packr" ]; then
|
||||||
~/go/bin/packr clean
|
~/go/bin/packr clean
|
||||||
elif [ -x "packr" ]; then
|
else
|
||||||
packr clean
|
packr clean
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user