mirror of
https://github.com/rancher/types.git
synced 2025-04-28 02:30:07 +00:00
11 lines
232 B
Bash
Executable File
11 lines
232 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
mkdir -p bin
|
|
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-extldflags -static -s"
|
|
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/types
|