From 09a725cf8e9c2f2085fe3a21ad2537082d5191c9 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Wed, 27 Jan 2016 14:54:31 -0800 Subject: [PATCH] add cross-compilation instructions --- .gitignore | 1 + README.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index de78734..49224fd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *~ *.swp docker-ext-commands.txt +bin/ # Compiled binary azure-extensions-cli diff --git a/README.md b/README.md index 0fa61d5..302cf3d 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,12 @@ and run: export GO15VENDOREXPERIMENT=1 go build +To cross compile: + + go get github.com/mitchellh/gox + export PATH=$PATH:$GOPATH/bin + gox -arch="amd64" -os="windows linux darwin" -output "bin/{{.OS}}-{{.Arch}}_{{.Dir}}" + ## Author Ahmet Alp Balkan