mirror of
https://github.com/cheat/cheat.git
synced 2024-11-24 23:11:36 +01:00
a13ad99241
Modified build scripts to always use local vendoring, now that the project contains a `vendor` directory.
14 lines
342 B
Bash
Executable File
14 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# locate the cheat project root
|
|
BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
APPDIR=$(readlink -f "$BINDIR/..")
|
|
|
|
# compile the executable
|
|
cd "$APPDIR/cmd/cheat"
|
|
go clean && go generate && go build -mod vendor
|
|
mv "$APPDIR/cmd/cheat/cheat" "$APPDIR/dist/cheat"
|
|
|
|
# display a build checksum
|
|
md5sum "$APPDIR/dist/cheat"
|