summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-10 12:25:56 +0300
committerValery Piashchynski <[email protected]>2020-02-10 12:25:56 +0300
commit02be3eec1d8323a16031e86c1ddcc5c52c440176 (patch)
treeade1230c7d4b9a23997e414e6622094ceb0fb5fa /build.sh
parent809458f32ff2676e35027f6cce1cbf6ae768423a (diff)
Add go.sum to VCS (it contains hashes, so, should be commited)
Return and process error from cprint and exit.go functions Update build.sh, remove LDFLAGS and CGO directives
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index 7562c34e..e61a60cf 100755
--- a/build.sh
+++ b/build.sh
@@ -12,18 +12,18 @@ LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$(date +%
build(){
echo Packaging $1 Build
bdir=roadrunner-${RR_VERSION}-$2-$3
- rm -rf builds/$bdir && mkdir -p builds/$bdir
+ rm -rf builds/"$bdir" && mkdir -p builds/"$bdir"
GOOS=$2 GOARCH=$3 ./build.sh
if [ "$2" == "windows" ]; then
- mv rr builds/$bdir/rr.exe
+ mv rr builds/"$bdir"/rr.exe
else
- mv rr builds/$bdir
+ mv rr builds/"$bdir"
fi
- cp README.md builds/$bdir
- cp CHANGELOG.md builds/$bdir
- cp LICENSE builds/$bdir
+ cp README.md builds/"$bdir"
+ cp CHANGELOG.md builds/"$bdir"
+ cp LICENSE builds/"$bdir"
cd builds
if [ "$2" == "linux" ]; then
@@ -45,4 +45,4 @@ if [ "$1" == "all" ]; then
exit
fi
-CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/rr" cmd/rr/main.go
+go build -o "$OD/rr" cmd/rr/main.go