github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/hack/make/win (about) 1 #!/bin/bash 2 set -e 3 4 # explicit list of os/arch combos that support being a daemon 5 declare -A daemonSupporting 6 daemonSupporting=( 7 [linux/amd64]=1 8 [windows/amd64]=1 9 ) 10 platform="windows/amd64" 11 export DEST="$DEST/$platform" # bundles/VERSION/cross/GOOS/GOARCH/docker-VERSION 12 mkdir -p "$DEST" 13 ABS_DEST="$(cd "$DEST" && pwd -P)" 14 export GOOS=${platform%/*} 15 export GOARCH=${platform##*/} 16 if [ -z "${daemonSupporting[$platform]}" ]; then 17 export LDFLAGS_STATIC_DOCKER="" # we just need a simple client for these platforms 18 export BUILDFLAGS=( "${ORIG_BUILDFLAGS[@]/ daemon/}" ) # remove the "daemon" build tag from platforms that aren't supported 19 fi 20 source "${MAKEDIR}/binary"