-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add usage output and cross-compile build cmd
- Loading branch information
1 parent
a5f6723
commit 5c6e72c
Showing
2 changed files
with
33 additions
and
1 deletion.
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,16 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
|
||
MOON="fndec" | ||
DIR="release" | ||
mkdir "$DIR" | ||
env GOOS=windows GOARCH=386 go build | ||
mv "$MOON".exe "${DIR}/${MOON}"-win386.exe | ||
env GOOS=windows GOARCH=amd64 go build | ||
mv "$MOON".exe "${DIR}/${MOON}"-win64.exe | ||
env GOOS=linux GOARCH=amd64 go build | ||
mv "$MOON" "${DIR}/${MOON}"-linux64 | ||
env GOOS=darwin GOARCH=386 go build | ||
mv "$MOON" "${DIR}/${MOON}"-darwin386 | ||
env GOOS=darwin GOARCH=amd64 go build | ||
mv "$MOON" "${DIR}/${MOON}"-darwinAmd64 |
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