Skip to content

Commit

Permalink
add tagging helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmon committed Dec 14, 2022
1 parent 9f4b1ff commit 0dbfe81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

version=$(date +%Y%m%d)

crosscompile () {
version=$(date +%Y%m%d)
GOOS="$1" GOARCH="$2" go build -v -ldflags="-X 'main.Version=${version}'" -o 'edfbleu'
zip -9 "edfbleu_${version}_${1}_${2}.zip" 'edfbleu'
}
Expand All @@ -21,3 +22,6 @@ echo
echo '* Cleaning up'
test -f edfbleu && rm edfbleu
test -f edfbleu.exe && rm edfbleu.exe
echo
echo '* Tagging cmd (if needed)'
echo "git tag ${version} && git push tags"

0 comments on commit 0dbfe81

Please sign in to comment.