-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "build for OS X" | ||
|
||
# FIXME: go build runtime: drawin/amd64 must be bootstrapped using make.bash | ||
#GOOS=drawin GOARCH=amd64 go build -o Ayi.osx Ayi.go | ||
#GOOS=drawin GOARCH=386 go build -o Ayi.osx Ayi.go | ||
go build -o Ayi.osx Ayi.go | ||
|
||
echo "build for windows" | ||
GOOS=windows GOARCH=386 go build -o Ayi.exe Ayi.go | ||
echo "build for linux" | ||
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -o Ayi.linux Ayi.go | ||
|
||
mv Ayi.osx build/osx/Ayi | ||
mv Ayi.linux build/linux/Ayi | ||
mv Ayi.exe build/win/Ayi.exe | ||
|
||
tar -cvzf build/ayi.osx.tgz build/osx/Ayi | ||
tar -cvzf build/ayi.linux.tgz build/linux/Ayi | ||
zip build/ayi.win.zip build/win/Ayi.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.tgz | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |