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"