add build-one.sh to build for current platform

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent 102df8039f
commit 58a2428ed1

@ -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 ""
Loading…
Cancel
Save