Skip to content

Commit

Permalink
Merge pull request #34 from vkareh/build-for-windows
Browse files Browse the repository at this point in the history
Add support for Windows binary build
  • Loading branch information
vkareh committed Jul 6, 2020
2 parents f89390f + 9d61cd5 commit 902a70a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ docs/*.rst
/moactl-darwin-amd64.sha256
/moactl-linux-amd64
/moactl-linux-amd64.sha256
/moactl-windows-amd64.exe
/moactl-windows-amd64.sha256
12 changes: 9 additions & 3 deletions build_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@ function build_cmds {
# Rename the generated binaries adding the operating system and architecture
# name and generate a SHA256 sum:
echo "Calculating SHA 256 sums"
mv "moactl" "moactl-${os}-${arch}"
sha256sum "moactl-${os}-${arch}" > "moactl-${os}-${arch}.sha256"
if [ -f "moactl.exe" ]
then
mv "moactl.exe" "moactl-${os}-${arch}.exe"
sha256sum "moactl-${os}-${arch}.exe" > "moactl-${os}-${arch}.sha256"
else
mv "moactl" "moactl-${os}-${arch}"
sha256sum "moactl-${os}-${arch}" > "moactl-${os}-${arch}.sha256"
fi
}

# Build for Linux and macOS:
build_cmds linux amd64
build_cmds darwin amd64
# build_cmds windows amd64
build_cmds windows amd64

# Bye:
exit 0

0 comments on commit 902a70a

Please sign in to comment.