-
Notifications
You must be signed in to change notification settings - Fork 6
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
3 changed files
with
36 additions
and
2 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
cli/kdo/bin/ | ||
cli/kdo/__debug_bin | ||
cli/kdo/rel/ | ||
cli/kdo/__debug_bin |
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,33 @@ | ||
#!/bin/bash | ||
|
||
VERSION=$1 | ||
if [ -z "$VERSION" ]; then | ||
echo >&2 Error: missing version | ||
exit 1 | ||
fi | ||
|
||
mkdir -p rel | ||
|
||
echo Building Darwin binary... | ||
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/amd64/kdo -v | ||
echo Packaging Darwin binary... | ||
cd bin/darwin/amd64 | ||
sudo chown 0:0 kdo | ||
tar -czvf ../../../rel/kdo-v$VERSION-darwin-amd64.tar.gz kdo | ||
cd ../../.. | ||
|
||
echo Building Linux binary... | ||
GOOS=linux GOARCH=amd64 go build -o bin/linux/amd64/kdo -v | ||
echo Packaging Linux binary... | ||
cd bin/linux/amd64 | ||
sudo chown 0:0 kdo | ||
tar -czvf ../../../rel/kdo-v$VERSION-linux-amd64.tar.gz kdo | ||
cd ../../.. | ||
|
||
echo Building Windows binary... | ||
GOOS=windows GOARCH=amd64 go build -o bin/windows/amd64/kdo.exe -v | ||
echo Packaging Windows binary... | ||
cd bin/windows/amd64 | ||
sudo chown 0:0 kdo.exe | ||
zip ../../../rel/kdo-v$VERSION-windows-amd64.zip kdo.exe | ||
cd ../../.. |
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