Skip to content

Commit

Permalink
Merge pull request #6 from film42/schinn/add_release_script
Browse files Browse the repository at this point in the history
release scripts
  • Loading branch information
schinns authored Aug 26, 2020
2 parents baafbbf + 25dce3e commit 47bdd7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pgreba
pkg/
18 changes: 18 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -x

rm -rf pkg/

GOOS=darwin GOARCH=amd64 go build -o pkg/pgreba-darwin-amd64
GOOS=linux GOARCH=amd64 go build -o pkg/pgreba-linux-amd64
GOOS=linux GOARCH=386 go build -o pkg/pgreba-linux-386

pushd pkg
for file in $(ls -1 .); do
shafile="${file}.sha"
tarfile="${file}.tar.gz"
tar -cf "${tarfile}" "${file}"
shasum -a 256 "${tarfile}" > "${shafile}"
rm "${file}"
done
popd

0 comments on commit 47bdd7b

Please sign in to comment.