diff --git a/build-one.sh b/build-one.sh new file mode 100755 index 0000000..9d5eff6 --- /dev/null +++ b/build-one.sh @@ -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 ""