lieu/release.sh

15 wiersze
332 B
Bash
Czysty Zwykły widok Historia

2021-02-03 08:51:17 +00:00
#!/bin/bash
2021-11-01 08:32:54 +00:00
for os in linux darwin openbsd
2021-02-03 08:51:17 +00:00
do
executable="lieu"
if [ $os = "windows" ]; then
executable="lieu.exe"
fi
env GOOS="$os" go build -tags fts5 -ldflags "-s -w"
2021-02-03 08:51:17 +00:00
tar czf "lieu-$os.tar.gz" README.md html/ data/ lieu.toml "$executable"
echo "lieu-$os.tar.gz"
rm -f "$executable"
done