mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-20 19:06:46 +00:00
Add release script
This commit is contained in:
parent
605f6db5a5
commit
507684a594
20
release.sh
Executable file
20
release.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
appname="od-database-crawler"
|
||||||
|
tag=$1
|
||||||
|
[ -z "$tag" ] && echo "Usage: build <version>" && exit 1
|
||||||
|
|
||||||
|
name=${appname}-${tag}-windows.exe
|
||||||
|
GOOS="windows" GOARCH="amd64" go build -ldflags="-s -w" -o $name
|
||||||
|
gzip -f $name
|
||||||
|
echo $name
|
||||||
|
|
||||||
|
name=${appname}-${tag}-linux
|
||||||
|
GOOS="linux" GOARCH="amd64" go build -ldflags="-s -w" -o $name
|
||||||
|
gzip -f $name
|
||||||
|
echo $name
|
||||||
|
|
||||||
|
name=${appname}-${tag}-mac
|
||||||
|
GOOS="darwin" GOARCH="amd64" go build -ldflags="-s -w" -o $name
|
||||||
|
gzip -f $name
|
||||||
|
echo $name
|
Loading…
x
Reference in New Issue
Block a user