Skip to content

Commit 09a725c

Browse files
committed
add cross-compilation instructions
1 parent c127b7d commit 09a725c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*~
33
*.swp
44
docker-ext-commands.txt
5+
bin/
56

67
# Compiled binary
78
azure-extensions-cli

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ and run:
7979
export GO15VENDOREXPERIMENT=1
8080
go build
8181

82+
To cross compile:
83+
84+
go get github.com/mitchellh/gox
85+
export PATH=$PATH:$GOPATH/bin
86+
gox -arch="amd64" -os="windows linux darwin" -output "bin/{{.OS}}-{{.Arch}}_{{.Dir}}"
87+
8288
## Author
8389

8490
Ahmet Alp Balkan

0 commit comments

Comments
 (0)