packer-cn/build.sh

17 lines
533 B
Bash
Raw Normal View History

2017-07-29 20:56:10 -04:00
#!/bin/sh
set -eux
2017-05-14 17:25:50 -04:00
export CGO_ENABLED=0
export GOARCH=amd64
mkdir -p bin
2017-07-29 21:06:50 -04:00
rm -f bin/*
2017-05-14 17:25:50 -04:00
2018-01-24 13:01:04 -05:00
GOOS=darwin go build -o bin/packer-builder-vsphere-iso.macos ./cmd/iso
GOOS=linux go build -o bin/packer-builder-vsphere-iso.linux ./cmd/iso
GOOS=windows go build -o bin/packer-builder-vsphere-iso.exe ./cmd/iso
GOOS=darwin go build -o bin/packer-builder-vsphere-clone.macos ./cmd/clone
GOOS=linux go build -o bin/packer-builder-vsphere-clone.linux ./cmd/clone
GOOS=windows go build -o bin/packer-builder-vsphere-clone.exe ./cmd/clone