packer-cn/build.sh

14 lines
277 B
Bash
Executable File

#!/bin/sh
set -eux
glide install -v
export CGO_ENABLED=0
export GOARCH=amd64
mkdir -p bin
rm -f bin/*
GOOS=darwin go build -o bin/packer-builder-vsphere.macos
GOOS=linux go build -o bin/packer-builder-vsphere.linux
GOOS=windows go build -o bin/packer-builder-vsphere.exe