Skip to content

Commit

Permalink
Add build script (cross-compile from Linux host)
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Oct 29, 2017
1 parent 0f65b5b commit cb909b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
mkdir -p ./build/amd64
mkdir -p ./build/i386

export GOOS=linux
export GOARCH=amd64
go build
mv ./boi ./build/amd64/boi
export GOARCH=386
go build
mv ./boi ./build/i386/boi

export GOOS=windows
export GOARCH=amd64
go build
mv ./boi.exe ./build/amd64/boi.exe
export GOARCH=386
go build
mv ./boi.exe ./build/i386/boi.exe

0 comments on commit cb909b6

Please sign in to comment.