From a13ad992416c9054ff078bcf12a7cab721de01a9 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Mon, 28 Oct 2019 19:39:22 -0400 Subject: [PATCH] chore: modified build scripts Modified build scripts to always use local vendoring, now that the project contains a `vendor` directory. --- bin/build_devel.sh | 2 +- bin/build_release.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/build_devel.sh b/bin/build_devel.sh index dfa9383..7a9ab32 100755 --- a/bin/build_devel.sh +++ b/bin/build_devel.sh @@ -6,7 +6,7 @@ APPDIR=$(readlink -f "$BINDIR/..") # compile the executable cd "$APPDIR/cmd/cheat" -go clean && go generate && go build +go clean && go generate && go build -mod vendor mv "$APPDIR/cmd/cheat/cheat" "$APPDIR/dist/cheat" # display a build checksum diff --git a/bin/build_release.sh b/bin/build_release.sh index b43043f..f4b2208 100755 --- a/bin/build_release.sh +++ b/bin/build_release.sh @@ -9,6 +9,11 @@ cd "$APPDIR/cmd/cheat" go clean && go generate # compile AMD64 for Linux, OSX, and Windows -env GOOS=darwin GOARCH=amd64 go build -o "$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat" -env GOOS=linux GOARCH=amd64 go build -o "$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat" -env GOOS=windows GOARCH=amd64 go build -o "$APPDIR/dist/cheat-win-amd64.exe" "$APPDIR/cmd/cheat" +env GOOS=darwin GOARCH=amd64 go build -mod vendor -o \ + "$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat" + +env GOOS=linux GOARCH=amd64 go build -mod vendor -o \ + "$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat" + +env GOOS=windows GOARCH=amd64 go build -mod vendor -o \ + "$APPDIR/dist/cheat-win-amd64.exe" "$APPDIR/cmd/cheat"