1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-23 14:07:13 +00:00
rke/scripts/build
Alena Prokharchyk 60574a70bb Initial Commit
2017-10-25 17:02:49 -07:00

11 lines
249 B
Bash
Executable File

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