1
0
mirror of https://github.com/rancher/types.git synced 2025-06-25 05:01:33 +00:00
types/scripts/build

11 lines
251 B
Plaintext
Raw 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
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-linkmode external -extldflags -static -s"
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/types