Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
cblgh committed Feb 3, 2021
1 parent 66f223e commit 5231ff3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

for os in windows linux darwin openbsd
do
executable="lieu"
if [ $os = "windows" ]; then
executable="lieu.exe"
fi
env GOOS="$os" go build -ldflags "-s -w"
tar czf "lieu-$os.tar.gz" README.md html/ data/ lieu.toml "$executable"
echo "lieu-$os.tar.gz"
rm -f "$executable"
done

0 comments on commit 5231ff3

Please sign in to comment.