From b51e009b11d78bd1ddfffbd5ec83ba1e5fa5702b Mon Sep 17 00:00:00 2001 From: Yilmaz Guleryuz <397125+zeusbaba@users.noreply.github.com> Date: Tue, 15 Jan 2019 12:07:28 +0100 Subject: [PATCH] build script --- README.md | 5 ++++- make-build.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 make-build.sh diff --git a/README.md b/README.md index 88a7197..e0d4c80 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ By default, app checks for env-var to find _vimeoToken_, if not found then it as # set vimeoToken as env-variable $ export VIMEO_TOKEN= -# OR just enter it when app asks your for it +# OR just enter it when app asks you for it ``` @@ -62,3 +62,6 @@ $ GOOS=darwin GOARCH=amd64 go build crawler.go $ GOOS=windows GOARCH=amd64 go build crawler.go ``` + +see [make-build.sh](make-build.sh) that builds for all common platforms + diff --git a/make-build.sh b/make-build.sh new file mode 100644 index 0000000..aa61621 --- /dev/null +++ b/make-build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh + +echo "`go version`" + +echo "making builds... linux" +GOOS=linux GOARCH=amd64 go build crawler.go +mv crawler crawler_linux + +echo "making builds... mac" +GOOS=darwin GOARCH=amd64 go build crawler.go +mv crawler crawler_mac + +echo "making builds... windows" +GOOS=windows GOARCH=amd64 go build crawler.go +mv crawler.exe crawler_win.exe + +echo "making builds... -> default" +go build crawler.go +