Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- readonly ARTIFACT_NAME=$1
- buid_and_checksum() {
- env GOOS=$1 GOARCH=amd64 go build -o go-${ARTIFACT_NAME}-${1}${2}
- sha512sum go-${ARTIFACT_NAME}-${1}${2} > go-${ARTIFACT_NAME}-${1}${2}.sha512.txt
- }
- main() {
- buid_and_checksum darwin
- buid_and_checksum linux
- buid_and_checksum windows .exe
- }
- main
Add Comment
Please, Sign In to add comment