kopia lustrzana https://github.com/cblgh/lieu
15 wiersze
329 B
Bash
15 wiersze
329 B
Bash
|
#!/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
|
||
|
|