kopia lustrzana https://github.com/cblgh/lieu
add release script
rodzic
66f223ed09
commit
5231ff3571
|
|
@ -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
|
||||
|
||||
Ładowanie…
Reference in New Issue