1
0
mirror of https://github.com/rancher/types.git synced 2025-04-29 02:43:21 +00:00
types/scripts/build

11 lines
232 B
Plaintext
Raw Permalink Normal View History

2017-11-10 20:23:15 +00:00
#!/bin/bash
set -e
source $(dirname $0)/version
cd $(dirname $0)/..
mkdir -p bin
2018-09-25 19:20:01 +00:00
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-extldflags -static -s"
2017-11-10 20:23:15 +00:00
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/types