diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..6bd344c --- /dev/null +++ b/release.sh @@ -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 +