add build-one.sh to build for current platform

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
kim (grufwub) 2020-04-22 13:44:53 +01:00
parent 102df8039f
commit 58a2428ed1

6
build-one.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
echo "Building for current platform..."
CGO_ENABLED=1 go build -trimpath -o 'gophor' -buildmode 'pie' -a -tags 'netgo' -ldflags '-s -w -extldflags "-static"'
upx --best --color 'gophor'
echo ""