mirror of https://github.com/shunfei/cronsun
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
322 B
23 lines
322 B
#!/bin/sh
|
|
|
|
version=v0.1
|
|
if [[ $# -gt 0 ]]; then
|
|
version="$1"
|
|
fi
|
|
|
|
|
|
declare -a goos=(
|
|
linux
|
|
darwin
|
|
)
|
|
|
|
for os in "${goos[@]}"; do
|
|
export GOOS=$os GOARCH=amd64
|
|
echo building $GOOS-$GOARCH
|
|
sh build.sh
|
|
mv dist cronsun-$version
|
|
7z a cronsun-$version-$GOOS-$GOARCH.zip cronsun-$version
|
|
rm -rf cronsun-$version
|
|
echo
|
|
done
|