Guest User

Untitled

a guest
Dec 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. readonly ARTIFACT_NAME=$1
  4.  
  5. buid_and_checksum() {
  6. env GOOS=$1 GOARCH=amd64 go build -o go-${ARTIFACT_NAME}-${1}${2}
  7. sha512sum go-${ARTIFACT_NAME}-${1}${2} > go-${ARTIFACT_NAME}-${1}${2}.sha512.txt
  8. }
  9.  
  10. main() {
  11. buid_and_checksum darwin
  12. buid_and_checksum linux
  13. buid_and_checksum windows .exe
  14. }
  15.  
  16. main
Add Comment
Please, Sign In to add comment