Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing committed Jul 29, 2019
1 parent d00ef46 commit 8432fca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

releases
15 changes: 15 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

mkdir releases
GOOS=darwin GOARCH=amd64 go build -o releases/mok-$1-darwin-amd64/mok
GOOS=linux GOARCH=amd64 go build -o releases/mok-$1-linux-amd64/mok
GOOS=windows GOARCH=amd64 go build -o releases/mok-$1-windows-amd64/mok.exe

cd releases
zip -r mok-$1-darwin-amd64.zip mok-$1-darwin-amd64
zip -r mok-$1-linux-amd64.zip mok-$1-linux-amd64
zip -r mok-$1-windows-amd64.zip mok-$1-windows-amd64

rm -r mok-$1-darwin-amd64
rm -r mok-$1-linux-amd64
rm -r mok-$1-windows-amd64

0 comments on commit 8432fca

Please sign in to comment.