From 2c7b87c1f24bf356fc80b1e5caec895b2d86f11b Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Thu, 5 Mar 2020 21:16:48 +0800 Subject: [PATCH] fix: build script naming problem on osx --- scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index f004ec4df..e94ac9863 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,6 +5,9 @@ CGO_ENABLED=0 if [ "${1}" == "windows" ] then go build -v -ldflags "-s -w" -o builds/webp-server-${1}-${2}.exe +elif [ "${1}" == "osx" ] +then + go build -v -ldflags "-s -w" -o builds/webp-server-darwin-${2} else go build -v -ldflags "-s -w" -o builds/webp-server-${1}-${2} fi