-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
39f4871
commit f046a3a
Showing
1 changed file
with
24 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,24 @@ | ||
#!/bin/bash | ||
|
||
# Clean | ||
echo "Cleaning up" | ||
rm -rf dist >/dev/null 2>&1 | ||
mkdir dist >/dev/null 2>&1 | ||
rm buffer-static-upload >/dev/null 2>&1 | ||
|
||
# Build native | ||
echo "Compiling native binary" | ||
go build main.go | ||
mv main buffer-static-upload | ||
|
||
# Build linux | ||
echo "Compiling linux binary" | ||
env GOOS=linux GOARCH=amd64 go build main.go | ||
mv main ./dist/buffer-static-upload-Linux | ||
|
||
# Build mac | ||
echo "Compiling mac binary" | ||
env GOOS=darwin GOARCH=amd64 go build main.go | ||
mv main ./dist/buffer-static-upload-Darwin | ||
|
||
echo "Done!" |