Remove referenced to developing on the host, we shouldn't support it.
Move script/validate to scripts/validate to be consistent.
Set the default target to be binary instead of clean.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 60b2dd3e23
Component: cli
21 lines
371 B
Bash
Executable File
21 lines
371 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build a windows binary from linux
|
|
#
|
|
|
|
set -eu -o pipefail
|
|
|
|
source ./scripts/build/.variables
|
|
|
|
export CC=x86_64-w64-mingw32-gcc
|
|
export CGO_ENABLED=1
|
|
export GOOS=windows
|
|
export GOARCH=amd64
|
|
|
|
# Override TARGET
|
|
TARGET="build/docker-$GOOS-$GOARCH"
|
|
|
|
echo "Building $TARGET"
|
|
# TODO: -tags pkcs11
|
|
go build -o "${TARGET}" --ldflags "${LDFLAGS}" "${SOURCE}"
|