Skip to content

Commit

Permalink
build script
Browse files Browse the repository at this point in the history
  • Loading branch information
OneOfOne committed Mar 17, 2019
1 parent afb72b2 commit c1e3185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/xxhsum/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xxhsum*
6 changes: 6 additions & 0 deletions cmd/xxhsum/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

VERSION=$1

env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum64-${VERSION}.exe || exit 1
env GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum32-${VERSION}.exe || exit 1

0 comments on commit c1e3185

Please sign in to comment.