gophi/build-one.sh
kim (grufwub) 58a2428ed1 add build-one.sh to build for current platform
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-22 13:44:53 +01:00

7 lines
205 B
Bash
Executable File

#!/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 ""