2019-10-20 16:02:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-10-27 15:26:24 +01:00
|
|
|
# locate the cheat project root
|
2019-10-20 16:02:28 +02:00
|
|
|
BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
APPDIR=$(readlink -f "$BINDIR/..")
|
|
|
|
|
|
|
|
# compile the executable
|
|
|
|
cd "$APPDIR/cmd/cheat"
|
2019-10-29 00:39:22 +01:00
|
|
|
go clean && go generate && go build -mod vendor
|
2019-10-20 16:02:28 +02:00
|
|
|
mv "$APPDIR/cmd/cheat/cheat" "$APPDIR/dist/cheat"
|
|
|
|
|
|
|
|
# display a build checksum
|
|
|
|
md5sum "$APPDIR/dist/cheat"
|