mirror of https://github.com/cheat/cheat.git
chore: modified build scripts
Modified build scripts to always use local vendoring, now that the project contains a `vendor` directory.
This commit is contained in:
parent
659e0a8eff
commit
a13ad99241
|
@ -6,7 +6,7 @@ APPDIR=$(readlink -f "$BINDIR/..")
|
||||||
|
|
||||||
# compile the executable
|
# compile the executable
|
||||||
cd "$APPDIR/cmd/cheat"
|
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"
|
mv "$APPDIR/cmd/cheat/cheat" "$APPDIR/dist/cheat"
|
||||||
|
|
||||||
# display a build checksum
|
# display a build checksum
|
||||||
|
|
|
@ -9,6 +9,11 @@ cd "$APPDIR/cmd/cheat"
|
||||||
go clean && go generate
|
go clean && go generate
|
||||||
|
|
||||||
# compile AMD64 for Linux, OSX, and Windows
|
# 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=darwin GOARCH=amd64 go build -mod vendor -o \
|
||||||
env GOOS=linux GOARCH=amd64 go build -o "$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat"
|
"$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat"
|
||||||
env GOOS=windows GOARCH=amd64 go build -o "$APPDIR/dist/cheat-win-amd64.exe" "$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"
|
||||||
|
|
Loading…
Reference in New Issue